public JsonResult Gets(string key = "", int status = 2, int page = 1, int pageSize = 5) { try { List <Staff> data = dao.Gets(key, status, page, pageSize); int totalRow = dao.Count(key, status); return(Json(new { data = data, totalRow = totalRow }, JsonRequestBehavior.AllowGet)); } catch (Exception) { return(Json(new { data = DBNull.Value.ToString() }, JsonRequestBehavior.AllowGet)); } }