コード例 #1
0
 public static Pharmacy ToModel(this Entities.Pharmacy pharmacy)
 {
     return(new Pharmacy
     {
         Id = pharmacy.Id,
         Name = pharmacy.Name
     });
 }
コード例 #2
0
 private Result <Entities.Pharmacy> UpdatePharmacy(Pharmacy pharmacyModel, Entities.Pharmacy pharmacy)
 {
     return(pharmacy.Update(pharmacyModel.Name).Map(() => pharmacy));
 }