Ejemplo n.º 1
0
        public async Task <IActionResult> GetTelephoneList([FromBody] JqueryDataTablesParameters param)
        {
            var results = await _iTelephoneRepository.GetTelephoneList(param);

            return(new JsonResult(new JqueryDataTablesResult <TelephoneAC>
            {
                Draw = param.Draw,
                Data = results.Items,
                RecordsFiltered = results.TotalSize,
                RecordsTotal = results.TotalSize
            }));
        }