UserListOutput.cs 621 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using VCommon.VApplication.Auditing.DataAnnotations;
  3. using VCommon.VApplication.Dto;
  4. namespace VCommonCoreExample.AppServices.System.Users.Dto
  5. {
  6. public class UserListOutput : IPagedResult<UserDto>
  7. {
  8. public IReadOnlyCollection<NamedEntityDto> AvailableRoles { get; set; }
  9. public UserListOutput(int totalRecord, IReadOnlyList<UserDto> items)
  10. {
  11. TotalRecord = totalRecord;
  12. Items = items;
  13. }
  14. public int TotalRecord { get; }
  15. [SimplifyAuditingLog]
  16. public IReadOnlyList<UserDto> Items { get; }
  17. }
  18. }