示例#1
0
        //
        // 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);
        }
示例#2
0
 public IList<ReplayDto> GetReplaysByPlayerUser(int playerUserId, PagingInfo pagingInfo)
 {
     return _replayRepository.GetByPlayerUser(playerUserId, pagingInfo);
 }
示例#3
0
        //
        // 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);
        }
示例#4
0
 public IList<ReplayDto> GetReplays(PagingInfo pagingInfo, string searchText)
 {
     return _replayRepository.GetForList(pagingInfo, searchText);
 }