TenantChangeViewModel.cs 500 B

123456789101112131415161718
  1. using Abp.AutoMapper;
  2. using WeApp.BaseSystem.Sessions.Dto;
  3. namespace WeApp.Models.Account
  4. {
  5. [AutoMapFrom(typeof(GetCurrentLoginInformationsOutput))]
  6. public class TenantChangeViewModel
  7. {
  8. public TenantLoginInfoDto Tenant { get; set; }
  9. public TenantChangeViewModel(string name = "", string tenancyName = "")
  10. {
  11. Tenant = Tenant ?? new TenantLoginInfoDto();
  12. Tenant.Name = name;
  13. Tenant.TenancyName = tenancyName;
  14. }
  15. }
  16. }