Ejemplo n.º 1
0
        public ActionResult Index()
        {
            var finacialYear = _financialYearAppService.GetActiveFinancialYear();
            var bills        = _billAppService.GetBills(finacialYear);

            return(View(bills));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> GetBills(int draw, int start, int length)
        {
            var keywords      = Request.Query["search[value]"];
            var pageSearchDto = new PageSearchCommonModel
            {
                UserId       = CurrentUser.UserId,
                DepartmentId = CurrentUser.DepartmentId,
                Keywords     = keywords,
                Take         = length,
                Skip         = start
            };
            var pagereslut = await _billAppService.GetBills(pageSearchDto);

            var json = new
            {
                draw,
                recordsTotal    = pagereslut.Total,
                recordsFiltered = pagereslut.Total,
                data            = pagereslut.Rows
            };

            return(Json(json));
        }