public async Task <ActionResult <CarModel> > GetCar(int carId) => await Exec(async operation => { VerifyUser(UserRole.Client); var entity = await clientProfileService.GetCarById(operation, carId); return(new CarModel().ToModel(entity)); });
public async Task <ActionResult <CarModel> > GetCar(int carId) => await Exec(async operation => { VerifyUser(UserRole.Client); var entity = await clientProfileService.GetCarById(operation, carId); return(new CarModel().ToModel(entity)); });