public JsonResult FillStatus(Int64 ID_Status) { try { DataTable dtbl = new DataTable(); BlStatus blStatus = new BlStatus(); blStatus.UserCode = Convert.ToInt64(Session["ID_Agent"]); blStatus.FK_Company = Convert.ToInt64(Session["ID_Company"]); blStatus.MasterID = ID_Status; dtbl = blStatus.SelectAllData(); return(Json(Converttojson(dtbl), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(ex)); } }
public JsonResult SelectStatusAll(string PageIndex = "1", string SearchItem = "") { try { int statusCode = 1; DataTable dtbl = new DataTable(); BlStatus blStatus = new BlStatus(); blStatus.UserCode = Convert.ToInt64(Session["ID_Agent"]); blStatus.FK_Company = Convert.ToInt64(Session["ID_Company"]); blStatus.StatusCode = SearchItem; blStatus.StatusName = SearchItem; blStatus.PageIndex = Convert.ToInt32(PageIndex); dtbl = blStatus.SelectAllData(); return(Json(Converttojson(dtbl), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { /// return(Json(ex)); } }