public JsonResult GetBackupsList(int limit = 10, int offset = 1, string fileName = "", DateTime?start_time = null, DateTime?end_time = null) { B_Backups b_backup = new B_Backups(); List <Order> order = new List <Order>() { Order.Desc("id") }; List <SearchTemplate> st = new List <SearchTemplate>() { new SearchTemplate() { key = "fileName", value = fileName, searchType = EnumBase.SearchType.Eq }, new SearchTemplate() { key = "start_time", value = fileName, searchType = EnumBase.SearchType.Ge }, new SearchTemplate() { key = "end_time", value = fileName, searchType = EnumBase.SearchType.Le }, new SearchTemplate() { key = "", value = new int[] { offset, limit }, searchType = EnumBase.SearchType.Paging } }; var list_manager = b_backup.GetList(st, order); var total = b_backup.GetCount(st); return(this.MyJson(new { total = total, rows = list_manager }, JsonRequestBehavior.AllowGet)); }