Esempio n. 1
0
 public JsonResult Delete(int id)
 {
     try
     {
         _patient.DeletePatient(id);
         return(Json(new { Result = "OK" }));
     }
     catch (Exception ex)
     {
         return(Json(new { Result = "ERROR", Message = ex.Message }));
     }
 }
Esempio n. 2
0
        public ActionResult DeletePatient(int PatientId)
        {
            var deletPatient = _objIPatient.DeletePatient(PatientId);

            return(RedirectToAction("ViewAllPatient", new { viewMessage = "Patient Detail Deleted Successfully" }));
        }