Get Average Weekly Duration query Handler

This commit is contained in:
SamSys
2025-12-14 16:27:36 +03:30
parent a01a927f6f
commit 2faf6c1400
2 changed files with 96 additions and 0 deletions

View File

@@ -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)
{