public ApiJsonResult GetAll()
 {
     try
     {
         return(new ApiJsonResult(true, _insuranceCompanyService.GetAll()));
     }
     catch (Exception ex)
     {
         return(ProcessException(ex));
     }
 }
Beispiel #2
0
        public async Task <ActionResult <IEnumerable <InsuranceCompany> > > GetAllInsuranceCompanies()
        {
            var insuranceCompanies = await _insuranceCompanyService.GetAll();

            return(Ok(insuranceCompanies));
        }