Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "aaron"

Please format the stack trace and your code properly:

```csharp
public async Task<PagedResultDto> GetAll(GetAllEstimateSubPortionsInput input)
{
    ...
}
```

Please show the stack trace and your updated code.

Try to await ToListAsync() for pagedAndFilteredEstimateSubPortions:

var pagedAndFilteredEstimateSubPortions = await filteredEstimateSubPortions
    .OrderBy(input.Sorting ?? "id asc")
    .PageBy(input)
    .ToListAsync();

Core layer, since ASP<span></span>.NET Zero already references Abp.MailKit there.

Try to evaluate totalCount before pagedAndFilteredEstimateSubPortions.

Please show the complete method.

Have you tried with Abp.MailKit version 4.7.0+? Preferably, with all ABP packages on the latest 4.x (currently 4.11.0).

Only abp.message.confirm accepts callback function directly. Documentation: https://aspnetboilerplate.com/Pages/Documents/Javascript-API/Message

For other methods in the Message API, you can use the undocumented .then(callback):

abp.message.success(
    app.localize('Transfer1'),
    app.localize('TransferSuccessful')
).then(function (isConfirmed) {
    location.href = "/App/Transactions";
});

If you insist.. Try to call a protected virtual method with [UnitOfWork] attribute:

public StatusProvider(IRepository<StatusForStaffMember> statusRepo, IRepository<StaffMember> staffMemberRepo, IAbpSession abpSession)
{
    SetStatusForStaffMember(statusRepo, staffMemberRepo, abpSession);
}

[UnitOfWork]
protected virtual void SetStatusForStaffMember(IRepository<StatusForStaffMember> statusRepo, IRepository<StaffMember> staffMemberRepo, IAbpSession abpSession)
{
    _statusForStaffMember = statusRepo.GetAllIncluding(s => s.User).FirstOrDefault(s => s.User.Id == abpSession.GetUserId());
    if (_statusForStaffMember == null)
    {
        var staffMember = staffMemberRepo.Get(abpSession.GetUserId());
        _statusForStaffMember = new StatusForStaffMember(staffMember);
    }
}
Showing 41 to 50 of 1543 entries