Example #1
0
 public async Task <ActionResult <IEnumerable <CarWashShortModel> > > GetCarWashList() => await Exec(async operation =>
 {
     var(_, id)      = VerifyUser(UserRole.Company);
     var carWashList = await companyProfileService.GetCarWashListByCompany(operation, id);
     return(carWashList.Select(item => new CarWashShortModel().ToModel(item)));
 });