Base solution for your next web application

Activities of "ismcagdas"

Hi,

Your code seems correct. Can you check items in blogComments to see if their CreatorUser is not null and contains Name field as well.

Since CreatorUserId is nullable, CreatorUser in your case might be null.

Answer

Hi,

You derive your DTO from FullAuditedEntityDto. Because of that, properties you marked with red are added to json result. You should derive your Salelistdto from EntityDto in order not to send those properties to client.

If you also dont want to send TenantId to client, you can remove it from your dto.

If you want to send TenantId to client, can you share Salemast dto? So we can try to understand problem better.

Hi,

You can find tutorial for extending entities here <a class="postlink" href="http://aspnetzero.com/Documents/Extending-Existing-Entities">http://aspnetzero.com/Documents/Extendi ... g-Entities</a>. For the example Edition entity is used :)

I hope this helps.

Answer

Hi,

I assume that this method is in an application service. If it is, you should not return your Entity to client. Instead you should use a dto object like PatientBodyImageDto.

An example update might be like:

public async Task<PatientBodyImageDto> PostSetPatientBodyImageStateAsync(IdInput input)
{
    PatientBodyImage patientBodyImage = await _patientBodyImageRepository.GetAsync(input.Id);

    Logger.Debug("Setting a new image state async: " + input.Name);
    
    patientBodyImage.State = PatientBodyImageStates.Approved;
    
    var update = await _patientBodyImageRepository.UpdateAsync(patientBodyImage);

    return update.MapTo<PatientBodyImageDto>();
}

You have to create PatientBodyImageDto class and put an attribute on it for AutoMapping.

[AutoMapFrom(typeof(PatientBodyImage))]

I hope this helps.

Answer

Hi,

You can download module zero template here <a class="postlink" href="http://aspnetboilerplate.com/Templates">http://aspnetboilerplate.com/Templates</a> Ensure that the checkbox at 3. step is checked.

Hi,

Today we are going to add a tutorial about extending Entities in ASP.NET Zero website. We will inform you when it is published.

Hi,

Can you get the result of ChangePasswordAsync method and see if there is an error ?

var result = await _userManager.ChangePasswordAsync(1, "123qwe","blabla");
Answer

Hi,

You can access the latest metronic theme here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases/download/v1.8.0.0/metronic-v4.5.4.zip">https://github.com/aspnetzero/aspnet-ze ... v4.5.4.zip</a>.

If you want and older version of metronic, please take a look at ASP.NET Zero relases under github <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases">https://github.com/aspnetzero/aspnet-zero/releases</a>.

Hi,

This is the right way actually. Can you get the return value of this method and see if there is an error message ?

var result = await _userManager.ChangePasswordAsync(1, "123qwe", "blabla");

Hi,

I think this problem is not related to ui-jq. I have tried your syntax and it worked for me.

ng-options="languageName.value as languageName.displayText + ' | '+  languageName.value for languageName in vm.languageNames"

It might be a browser caching problem. Can you check that ?

Showing 12531 to 12540 of 12551 entries