diff --git a/Company.Domain/InsuranceListAgg/IInsuranceListRepository.cs b/Company.Domain/InsuranceListAgg/IInsuranceListRepository.cs index 1ff57039..75607aaf 100644 --- a/Company.Domain/InsuranceListAgg/IInsuranceListRepository.cs +++ b/Company.Domain/InsuranceListAgg/IInsuranceListRepository.cs @@ -67,6 +67,8 @@ public interface IInsuranceListRepository:IRepository Task GetTabCounts(InsuranceListSearchModel searchModel); #endregion + + Task GetNotCreatedWorkshop(InsuranceListSearchModel searchModel); } diff --git a/CompanyManagment.App.Contracts/InsuranceList/IInsuranceListApplication.cs b/CompanyManagment.App.Contracts/InsuranceList/IInsuranceListApplication.cs index a93637cb..84f5b3f2 100644 --- a/CompanyManagment.App.Contracts/InsuranceList/IInsuranceListApplication.cs +++ b/CompanyManagment.App.Contracts/InsuranceList/IInsuranceListApplication.cs @@ -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 GetTabCounts(InsuranceListSearchModel searchModel); #endregion + + Task GetNotCreatedWorkshop(InsuranceListSearchModel searchModel); } \ No newline at end of file diff --git a/CompanyManagment.Application/InsuranceListApplication.cs b/CompanyManagment.Application/InsuranceListApplication.cs index 3e5b1d16..14b59841 100644 --- a/CompanyManagment.Application/InsuranceListApplication.cs +++ b/CompanyManagment.Application/InsuranceListApplication.cs @@ -2366,5 +2366,10 @@ public class InsuranceListApplication : IInsuranceListApplication return _insuranceListRepositpry.GetTabCounts(searchModel); } + public async Task GetNotCreatedWorkshop(InsuranceListSearchModel searchModel) + { + return await _insuranceListRepositpry.GetNotCreatedWorkshop(searchModel); + } + #endregion } \ No newline at end of file diff --git a/CompanyManagment.EFCore/Repository/InsuranceListRepository.cs b/CompanyManagment.EFCore/Repository/InsuranceListRepository.cs index 9af13e1a..cfd0237d 100644 --- a/CompanyManagment.EFCore/Repository/InsuranceListRepository.cs +++ b/CompanyManagment.EFCore/Repository/InsuranceListRepository.cs @@ -1569,7 +1569,12 @@ public class InsuranceListRepository : RepositoryBase, IIns } - /// + public Task GetNotCreatedWorkshop(InsuranceListSearchModel searchModel) + { + throw new NotImplementedException(); + } + + /// /// /// /// diff --git a/ServiceHost/Areas/Admin/Pages/Company/InsuranceList/Index.cshtml.cs b/ServiceHost/Areas/Admin/Pages/Company/InsuranceList/Index.cshtml.cs index 2cc63397..65012021 100644 --- a/ServiceHost/Areas/Admin/Pages/Company/InsuranceList/Index.cshtml.cs +++ b/ServiceHost/Areas/Admin/Pages/Company/InsuranceList/Index.cshtml.cs @@ -1162,10 +1162,16 @@ public class IndexModel : PageModel }); } - // public IActionResult OnGetNotCreatedWorkshops(InsuranceListSearchModel searchModel) - // { - // - // } + public async Task OnGetNotCreatedWorkshops(InsuranceListSearchModel searchModel) + { + var result =await _insuranceListApplication.GetNotCreatedWorkshop(searchModel); + return new JsonResult(new + { + result + + }); + + } public async Task OnGetTabCounts(InsuranceListSearchModel searchModel) {