Exemplo n.º 1
0
 public ActionResult Delete(Guid drugID)
 {
     _drugService.Delete(drugID);
     return(Json(new BaseApiModel()
     {
         success = _modelState.IsValid(),
         message = ModelState[""]?.Errors[0].ErrorMessage
     }));
 }
Exemplo n.º 2
0
 public void Delete(Drug entity)
 {
     _drugService.Delete(entity);
 }
Exemplo n.º 3
0
 public IActionResult Delete(int id)
 {
     _drugService.Delete(id);
     _drugService.Save();
     return(RedirectToAction("Index"));
 }