using _0_Framework.Application; using CompanyManagment.App.Contracts.AdminMonthlyOverview; using Microsoft.AspNetCore.Mvc; using ServiceHost.BaseControllers; namespace ServiceHost.Areas.Admin.Controllers; public class AdminMonthlyOverviewController:AdminBaseController { private readonly IAdminMonthlyOverviewApplication _adminMonthlyOverviewApplication; public AdminMonthlyOverviewController(IAdminMonthlyOverviewApplication adminMonthlyOverviewApplication) { _adminMonthlyOverviewApplication = adminMonthlyOverviewApplication; } /// /// لیست امور ماهیانه پرسنل /// /// /// [HttpGet("")] public async Task>> GetList([FromQuery]AdminMonthlyOverviewSearchModel searchModel) { var result= await _adminMonthlyOverviewApplication.GetWorkshopListByStatus(searchModel); return result; } /// /// مرحله بهدی /// /// /// [HttpPost("Next/{id}")] public async Task> Next(long id) { var result = await _adminMonthlyOverviewApplication.Next(id); return result; } /// /// مرحله قبلی /// /// /// [HttpPost("Back/{id}")] public async Task> Back(long id) { var result = await _adminMonthlyOverviewApplication.Back(id); return result; } /// /// تعداد امور ماهاینه /// /// /// /// /// [HttpGet("Counter")] public async Task> Counter(int year,int month,int accountId) { var result = await _adminMonthlyOverviewApplication.GetCounter(year,month,accountId); return result; } }