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); }
public IActionResult GetList([FromQuery] CoinMessageInputDto input) { var result = _service.GetListCoinMessage(input); return(PageResponse(result)); }
public IActionResult AddCoinMessage([FromBody] CoinMessageInputDto input) { _service.AddCoinMessage(input); return(AddResponse(input)); }