public Result Update(Guid id, Pharmacy pharmacyModel)
        {
            var pharmacy = pharmacyRepository.GetById(id).ToResult("Pharmacy not found");

            return(Result.Combine(pharmacy)
                   .Tap(() => UpdatePharmacy(pharmacyModel, pharmacy.Value))
                   .Tap(() => pharmacyRepository.Update(pharmacy.Value))
                   .Tap(() => pharmacyRepository.SaveChanges()));
        }
 public Pharmacy Update(Pharmacy pharmacy) => _pharmacyRepository.Update(pharmacy);