public ActionResult GetGridJson(Pagination pagination, string keyword)
        {
            var data = new
            {
                rows    = companycleApp.GetList(pagination, keyword),
                total   = pagination.total,
                page    = pagination.page,
                records = pagination.records
            };

            return(Content(data.ToJson()));
        }
Ejemplo n.º 2
0
        private object GetProfileOperationsCompany()
        {
            ProfileOperationsCompanyApp cityApp = new ProfileOperationsCompanyApp();
            var data = cityApp.GetList();
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            foreach (ProfileOperationsCompanyEntity item in data)
            {
                var fieldItem = new
                {
                    encode   = item.F_Id,
                    fullname = item.CompanyName
                };
                dictionary.Add(item.F_Id, fieldItem);
            }
            return(dictionary);
        }