Exemplo n.º 1
0
 public ProfileModel(UserLDAPModel userLDAPModel, int id, string password, string image, string imageLinkBaseUrl)
     : this(id, userLDAPModel?.Username, password,
            !string.IsNullOrEmpty(userLDAPModel?.FullName) ? userLDAPModel.FullName : userLDAPModel?.DisplayName,
            userLDAPModel != null ? userLDAPModel.Role : RoleOptions.Student,
            !string.IsNullOrEmpty(image) ? $"{imageLinkBaseUrl}/{image}" : null)
 {
 }
Exemplo n.º 2
0
 public UserModel(UserLDAPModel userLDAPModel)
     : this(0, userLDAPModel?.Username, userLDAPModel?.Password, userLDAPModel?.FullName, null,
            userLDAPModel != null ? userLDAPModel.Role : RoleOptions.Student, StatusOptions.Actived)
 {
 }