public ActionResult DeleteCase(Guid id) { var caseModelFromRepo = _repository.GetCaseById(id); if (caseModelFromRepo != null) { _repository.DeleteCase(caseModelFromRepo); _repository.SaveChanges(); return(NoContent()); } return(NotFound()); }
public void delete(int id) { _caseRepo.DeleteCase(id); }