示例#1
0
        public IActionResult display(int Uid, int Pageindex, int Pagesize)
        {
            List <Appointmentdisplay> list  = new List <Appointmentdisplay>();
            List <Appointmentdisplay> _list = new List <Appointmentdisplay>();

            try
            {
                list  = bll.display(Uid);
                _list = list.Skip((Pageindex - 1) * Pagesize).Take(Pagesize).ToList();
            }
            catch (Exception ex)
            {
                log.Error(ex.Message);
                throw;
            }

            return(Ok(new { data = _list, count = list.Count }));
        }