Example #1
0
        public ActionResult GetGridJson(Pagination pagination, string keyword)
        {
            var company   = _organizeApp.GetList(pagination, keyword);
            var customers = company.Where(x => x.F_Id != OperatorProvider.Provider.GetCurrent().CompanyId&& x.F_DeleteMark != true).Select(item => new CustomerViewModel
            {
                CompanyInfo = item,
                DefaultUser = _userApp.GetDefaultUser(item.F_Id),
                DefaultRole = _roleApp.GetDefaultCompanyRole(item.F_Id)
            }).ToList();

            return(Content(customers.ToJson()));
        }