Exemplo n.º 1
0
        public ActionResult Index(EmployeeQM model)
        {
            var list = this.iEmployeeService.GetListModel <EmployeeLM, EmployeeQM>(model);

            if (Request.IsAjaxRequest())
            {
                return(PartialView("Grid", list));
            }
            else
            {
                BindData();
            }

            return(View(list));
        }
Exemplo n.º 2
0
        public ActionResult Index(EmployeeQM model)
        {
            var empInfo = iEmployeeService.Get(currentUser.ID);

            model.MerchantID = empInfo.MerchantID;

            var list = this.iEmployeeService.GetListModel <EmployeeLM, EmployeeQM>(model);

            BindData();

            if (Request.IsAjaxRequest())
            {
                return(PartialView("Grid", list));
            }

            return(View(list));
        }