Пример #1
0
        public async Task <IActionResult> GetInsurances()
        {
            var insurances = await _repo.GetAllInsurances();

            return(Ok(insurances));
        }
 // GET: api/Insurances
 public IEnumerable <Insurance> GetInsurances()
 {
     return(_repo.GetAllInsurances());
 }