Exemplo n.º 1
0
        public ActionResult List()
        {
            var model = jobCategoryService.GetCategories().Select(x => new JobCategoryModel
            {
                Id       = x.Id,
                Name     = x.Name,
                IsActive = x.IsActive,
                JobCount = jobService.GetCount(x.Id)
            }).ToList();

            return(View(new GridModel <JobCategoryModel>
            {
                Data = model,
                Total = model.Count()
            }));
        }