using _0_Framework.Application; using CompanyManagment.App.Contracts.InsuranceList; using Microsoft.AspNetCore.Mvc; using ServiceHost.BaseControllers; namespace ServiceHost.Areas.Client.Controllers; public class InsuranceController:ClientBaseController { private readonly IInsuranceListApplication _insuranceListApplication; public InsuranceController(IInsuranceListApplication insuranceListApplication) { _insuranceListApplication = insuranceListApplication; } [HttpGet] public async Task>> GetInsurances(InsuranceClientSearchModel searchModel) { var insurances =await _insuranceListApplication.GetInsuranceClientList(searchModel); return Ok(insurances); } }