Exemplo n.º 1
0
        /// <summary>
        /// Lấy tất cả thay đổi
        /// </summary>

        public List <LichSu> GetAll(LichSuSearchList lichSuSearchList)
        {
            var query = _lichsurepository.GetAll();

            this.count_list = query.Count();
            query           = query.OrderBy(p => p.ThoiGianThucHien)
                              .Skip(lichSuSearchList.size.Value * lichSuSearchList.page.Value).Take(lichSuSearchList.size.Value);
            return(query.ToList());
        }
Exemplo n.º 2
0
 public IHttpActionResult GetLichSus(LichSuSearchList lichSuSearchList)
 {
     return(Ok(new {
         data = _lichSuServices.GetAll(lichSuSearchList),
         total = _lichSuServices.Count(),
         lichSuSearchList.size,
         lichSuSearchList.page
     }));
 }