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 })); } }
public ActionResult DeletePatient(int PatientId) { var deletPatient = _objIPatient.DeletePatient(PatientId); return(RedirectToAction("ViewAllPatient", new { viewMessage = "Patient Detail Deleted Successfully" })); }