public static Pharmacy ToModel(this Entities.Pharmacy pharmacy) { return(new Pharmacy { Id = pharmacy.Id, Name = pharmacy.Name }); }
private Result <Entities.Pharmacy> UpdatePharmacy(Pharmacy pharmacyModel, Entities.Pharmacy pharmacy) { return(pharmacy.Update(pharmacyModel.Name).Map(() => pharmacy)); }