Get Average Weekly Duration query Handler
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using GozareshgirProgramManager.Application._Common.Models;
|
||||
using GozareshgirProgramManager.Application.Modules.SalaryPaymentSettings.Commands.CreateSalarySettings;
|
||||
using GozareshgirProgramManager.Application.Modules.SalaryPaymentSettings.Commands.EditSalarySettings;
|
||||
using GozareshgirProgramManager.Application.Modules.SalaryPaymentSettings.Queries.GetAverageWeeklyDuration;
|
||||
using GozareshgirProgramManager.Application.Modules.SalaryPaymentSettings.Queries.GetSalarySettingToEdit;
|
||||
using GozareshgirProgramManager.Application.Modules.SalaryPaymentSettings.Queries.GetUserListWhoHaveSettings;
|
||||
using GozareshgirProgramManager.Domain.SalaryPaymentSettingAgg.Enums;
|
||||
@@ -45,6 +46,15 @@ public class SalaryPaymentSettingsController : ProgramManagerBaseController
|
||||
return res;
|
||||
}
|
||||
|
||||
[HttpPost("GetAverageWeeklyDuration")]
|
||||
public async Task<ActionResult<OperationResult<GetAverageWeeklyDurationResponse>>> GetAverageWeeklyDuration(GetAverageWeeklyDurationQuery command)
|
||||
{
|
||||
|
||||
var res = await _mediator.Send(command);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
[HttpPost("edit")]
|
||||
public async Task<ActionResult<OperationResult>> Edit([FromBody] EditSalarySettingsCommand command)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user