>>var clients = Db.Clients;>>
>>private JsonResult CreateFlexiJson(IEnumerable<JobPost> items, int page, int total)>>
>private JsonResult CreateFlexiJson(IEnumerable<JobPost> items, int page, int total, ??? clients = null)No, I need the clients to become IEnumerable in the declaration. E.g. in the sample application I am working with
private JsonResult CreateFlexiJson(IEnumerable<Client> items, int page, int total) { return Json( new { page, total, rows = items .Select(x => new { id = x.Id, // either use GetPropertyList(x) method to get all columns cell = new { Id = x.Id, Number = x.Number, Name = x.Name, Contact1 = x.Contact1.Contact ?? String.Empty } }) }, JsonRequestBehavior.AllowGet); }E.g. I had to bring Objects reference to that project. Don't know if there are any problems with this approach.