public JsonResult Select_ProfessionDetail() { string data = ""; bool result = false; data = ProfessionMethods.Get_ProfessionTypeData(); if (!string.IsNullOrEmpty(data)) { result = true; } return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet)); }
public JsonResult Insert_ProfessionType(ProfessionTypeVM objects) { bool result = false; string msg = "Failed to save record.."; result = ProfessionMethods.Insert_ProfessionType(objects); if (result) { msg = "Successfully Added"; } return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet)); }