public Result Delete(Guid id) { return(pharmacyRepository .GetById(id) .ToResult("Pharmacy not found") .Tap(pharmacy => pharmacyRepository.Delete(pharmacy)) .Tap(() => pharmacyRepository.SaveChanges())); }
public bool Remove(Pharmacy pharmacy) => _pharmacyRepository.Delete(pharmacy);