示例#1
0
 public Task<DanhSachPermissionOutput> GetAll(FilterPermissionInput input)
 {
     int total = _permissionTable.GetTotal(input.Keyword);
     IEnumerable<Permission> paging = _permissionTable.GetPaging(input.PageSize, input.PageNumber, input.Keyword);
     return Task.FromResult(new DanhSachPermissionOutput
                            {
         DanhSachPermissions = paging,
         TotalCount = total
     });
 }
 public async Task<DanhSachPermissionOutput> GetAll(FilterPermissionInput filter)
 {
     return await _permissionBll.GetAll(filter);
 }