public ActionResult Create(string key = "", string customergroup = "", string customerstatus = "", int page = 1) { ViewBag.keyValue = key; ViewBag.CustomerGroupValue = customergroup; ViewBag.customerstatusValue = customerstatus; ViewBag.CustomerGroups = GetMenuList(); ViewBag.ControllerList = _tblAccessControllerService.GetAllActive(); ViewBag.LevelList = _tblAccessLevelService.GetAllActive(); return(View()); }
public ActionResult Index() { var model = new SelectListModelUpload() { dtComputer = _tblAccessPCService.GetAllActive().ToDataTableNullable(), dtCardGroup = _tblCardGroupService.GetAllActive().ToDataTableNullable(), dtCustomerGroup = GetMenuList().ToDataTableNullable(), dtAccessLevel = _tblAccessLevelService.GetAllActive().ToDataTableNullable() }; ViewBag.GroupController = GetControllerGroupList(); ViewBag.PageSize = FunctionHelper.PageSize(); return(View(model)); }
public HttpResponseMessage GetSelectList() { var model = new SelectListModelUpload() { dtComputer = _tblAccessPCService.GetAllActive().ToDataTableNullable(), dtCardGroup = _tblCardGroupService.GetAllActive().ToDataTableNullable(), dtCustomerGroup = GetMenuList().ToDataTableNullable(), dtAccessLevel = _tblAccessLevelService.GetAllActive().ToDataTableNullable() }; var content = new StringContent(JsonConvert.SerializeObject(model), Encoding.UTF8, "application/json"); return(new HttpResponseMessage() { StatusCode = HttpStatusCode.OK, Content = content, RequestMessage = Request }); }
public IEnumerable <tblAccessLevel> GetListAccessLevel() { return(_tblAccessLevelService.GetAllActive()); }