public JsonResult ShowCustomTranslation() { BL_CustomTranslation db = new BL_CustomTranslation(); return(new JsonResult { Data = db.SelectAllData(), JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public ActionResult Delete(int TextID) { string del = ""; TextID = Convert.ToInt32(Request.Form["TextID"]); BL_CustomTranslation obj = new BL_CustomTranslation(); // BL_PatientPrivilegeCard _PatientPrivilegeCard = new BL_PatientPrivilegeCard(); if (obj.Delete(TextID)) { del = "Delete"; } return(Json(del, JsonRequestBehavior.AllowGet)); }