Beispiel #1
0
        public async Task <IActionResult> Employees(TableParameter param)
        {
            var list = await _coreRep.ListEmployees(param.search, param.page, param.pageSize, param.orderBy, param.orderDirection, param.filter);

            var count = await _coreRep.GetEmployeeCount(param.filter);

            return(Ok(new
                      ResponseModel(new
            {
                emps = list.Select(u => new EmployeeModel(u)),
                total = count
            })));
        }