Пример #1
0
 public Result Delete(Guid id)
 {
     return(pharmacyRepository
            .GetById(id)
            .ToResult("Pharmacy not found")
            .Tap(pharmacy => pharmacyRepository.Delete(pharmacy))
            .Tap(() => pharmacyRepository.SaveChanges()));
 }
Пример #2
0
 public bool Remove(Pharmacy pharmacy) => _pharmacyRepository.Delete(pharmacy);