public ActionResult Delete(string id) { _context.DeleteRecordByIdProperity <Doctor>(_table, id); return(Json(new { success = true, message = "Deleted Successfully" }, JsonRequestBehavior.AllowGet)); }