コード例 #1
0
 public async Task <ActionResult <IEnumerable <CarModel> > > GetCarList() => await Exec(async operation =>
 {
     var(_, id)  = VerifyUser(UserRole.Client);
     var carList = await clientProfileService.GetCarListByClient(operation, id);
     return(carList.Select(item => new CarModel().ToModel(item)));
 });