private Result <Entities.Pharmacy> CreatePharmacy(Pharmacy pharmacy) { return(Entities.Pharmacy.Create(pharmacy.Name) .Tap(pharmacyModel => pharmacyRepository.Create(pharmacyModel)) .Tap(_ => pharmacyRepository.SaveChanges())); }
public Pharmacy Add(Pharmacy pharmacy) => _pharmacyRepository.Create(pharmacy);