Base solution for your next web application

Activities of "ismcagdas"

Hello,

Yes it is possible. You can define another ViewBase for your MainApp like.

public abstract class MainAppWebViewPageBase<TModel> : AbpWebViewPage<TModel>
{
    protected AbpZeroTemplateWebViewPageBase()
    {
        LocalizationSourceName = "MainApp"
    }
}

Then you can configure it in the web.config file under "/App/MainApp" directory like (Add if it does not exist)

<system.web.webPages.razor>
    <pages pageBaseType="MainAppWebViewPageBase">
    ....
    </pages>
</system.web.webPages.razor>

Then it should work like you expected.

I hope this helps.

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 ?

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");
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,

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

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

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.

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.

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.

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,

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.

Showing 11 to 20 of 12551 entries