Esempio n. 1
0
        public ResponseModel Phantrang([FromBody] Dictionary <string, object> formData)
        {
            var response = new ResponseModel();

            try
            {
                var  page     = int.Parse(formData["page"].ToString());
                var  pageSize = int.Parse(formData["pageSize"].ToString());
                long total    = 0;
                var  data     = isp.phantrang(page, pageSize, out total);
                response.TotalItems = total;
                response.Data       = data;
                response.Page       = page;
                response.PageSize   = pageSize;
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(response);
        }