feat: add "GetNotCreatedWorkshop" method to InsuranceList functionality
This commit is contained in:
@@ -67,6 +67,8 @@ public interface IInsuranceListRepository:IRepository<long, InsuranceList>
|
||||
Task<InsuranceListTabsCountViewModel> GetTabCounts(InsuranceListSearchModel searchModel);
|
||||
|
||||
#endregion
|
||||
|
||||
Task<InsuranceListViewModel> GetNotCreatedWorkshop(InsuranceListSearchModel searchModel);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user