public ActionResult _ListRoleInSystem() { var db = new RoleBusiness(); int minRow = 0; int maxRow = 0; int.TryParse(HttpContext.Request["start"], out minRow); int length = 10; int.TryParse(HttpContext.Request["length"], out length); maxRow = (minRow + length); int draw = 0; int.TryParse(HttpContext.Request["draw"], out draw); string search = HttpContext.Request["search[value]"].Trim(); int currentPage = (minRow / 10) + 1; var result = db.ListRoll(search, currentPage, 10); return(Content(JsonConvert.SerializeObject(new { data = result.Data, draw = draw, recordsFiltered = result.Total, recordsTotal = result.Total }))); }