Пример #1
0
        public IQueryable <Domain.Coin.CoinMessage.CoinMessage> GetPageOrderByAsc(CoinMessageInputDto input, ref int count)
        {
            count = DbSet.Count(x => x.CreateTime > DateTime.Now);
            var data = DbSet.Where(x => x.CreateTime > DateTime.Now && x.IsDelete == 0).OrderBy(x => x.CreateTime)
                       .Skip(input.pagesize * (input.pageindex > 1 ? input.pageindex - 1 : 0)).Take(input.pagesize);

            return(data);
        }
Пример #2
0
        public IActionResult GetList([FromQuery] CoinMessageInputDto input)
        {
            var result = _service.GetListCoinMessage(input);

            return(PageResponse(result));
        }
Пример #3
0
 public IActionResult AddCoinMessage([FromBody] CoinMessageInputDto input)
 {
     _service.AddCoinMessage(input);
     return(AddResponse(input));
 }