// // GET: /Replays/List public JsonResult GetByPlayerUser(int playerId, int startIndex, int pageSize) { var pagingInfo = new PagingInfo(startIndex, pageSize); var dtos = _replayService.GetReplaysByPlayerUser(playerId, pagingInfo); return Json(dtos, JsonRequestBehavior.AllowGet); }
public IList<ReplayDto> GetReplaysByPlayerUser(int playerUserId, PagingInfo pagingInfo) { return _replayRepository.GetByPlayerUser(playerUserId, pagingInfo); }
// // GET: /Replays/List public JsonResult List(int startIndex, int pageSize, string searchText) { var pagingInfo = new PagingInfo(startIndex, pageSize); var dtos = _replayService.GetReplays(pagingInfo, searchText); return Json(dtos, JsonRequestBehavior.AllowGet); }
public IList<ReplayDto> GetReplays(PagingInfo pagingInfo, string searchText) { return _replayRepository.GetForList(pagingInfo, searchText); }