Esempio n. 1
0
        public ListResult <UserGroupListItem> List(ListCommand cmd, IEnumerable <int> selectedIds = null)
        {
            var list = UserGroupRepository.List(cmd, out var totalRecords, selectedIds?.ToList() ?? new List <int>());

            return(new ListResult <UserGroupListItem>
            {
                Data = list.ToList(),
                TotalRecords = totalRecords
            });
        }