public async Task <JsonResult> NotificationTypesList(DTParameters param) { var(data, count) = await _service.Filter <NotificationTypes>(param.Search.Value, param.SortOrder, param.Start, param.Length); var finalResult = new DTResult <NotificationTypes> { Draw = param.Draw, Data = data, RecordsFiltered = count, RecordsTotal = data.Count }; return(Json(finalResult)); }