public JsonResult GetNewStatus() { ChangeStatusInput input = new ChangeStatusInput { EntityType = String.IsNullOrEmpty(Request["EntityType"]) ? 0 : Convert.ToInt32(Request["EntityType"]), StatusType = String.IsNullOrEmpty(Request["StatusType"]) ? 0 : Convert.ToInt32(Request["StatusType"]), Status = Request["Status"], SecurityRoleId = new Guid(System.Web.HttpContext.Current.Session["RoleID"].ToString()) }; var data = new SelectList(StatusLabel.GetNextStatus(input), "Value", "Text"); return(Json(data, JsonRequestBehavior.AllowGet)); }