feat: add "GetNotCreatedWorkshop" method to InsuranceList functionality

This commit is contained in:
2025-10-09 13:47:43 +03:30
parent db225fea18
commit 70164ae498
5 changed files with 26 additions and 5 deletions

View File

@@ -67,6 +67,8 @@ public interface IInsuranceListRepository:IRepository<long, InsuranceList>
Task<InsuranceListTabsCountViewModel> GetTabCounts(InsuranceListSearchModel searchModel);
#endregion
Task<InsuranceListViewModel> GetNotCreatedWorkshop(InsuranceListSearchModel searchModel);
}

View File

@@ -6,6 +6,7 @@ using System.Threading.Tasks;
using _0_Framework.Application;
using CompanyManagment.App.Contracts.InsuranceList;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace CompanyManagment.App.Contracts.InsuranceList;
@@ -47,4 +48,6 @@ public interface IInsuranceListApplication
Task<InsuranceListTabsCountViewModel> GetTabCounts(InsuranceListSearchModel searchModel);
#endregion
Task<InsuranceListViewModel> GetNotCreatedWorkshop(InsuranceListSearchModel searchModel);
}

View File

@@ -2366,5 +2366,10 @@ public class InsuranceListApplication : IInsuranceListApplication
return _insuranceListRepositpry.GetTabCounts(searchModel);
}
public async Task<InsuranceListViewModel> GetNotCreatedWorkshop(InsuranceListSearchModel searchModel)
{
return await _insuranceListRepositpry.GetNotCreatedWorkshop(searchModel);
}
#endregion
}

View File

@@ -1569,7 +1569,12 @@ public class InsuranceListRepository : RepositoryBase<long, InsuranceList>, IIns
}
/// <summary>
public Task<InsuranceListViewModel> GetNotCreatedWorkshop(InsuranceListSearchModel searchModel)
{
throw new NotImplementedException();
}
/// <summary>
///
/// </summary>
/// <param name="year"></param>

View File

@@ -1162,10 +1162,16 @@ public class IndexModel : PageModel
});
}
// public IActionResult OnGetNotCreatedWorkshops(InsuranceListSearchModel searchModel)
// {
//
// }
public async Task<IActionResult> OnGetNotCreatedWorkshops(InsuranceListSearchModel searchModel)
{
var result =await _insuranceListApplication.GetNotCreatedWorkshop(searchModel);
return new JsonResult(new
{
result
});
}
public async Task<IActionResult> OnGetTabCounts(InsuranceListSearchModel searchModel)
{