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) { }
public UserModel(UserLDAPModel userLDAPModel) : this(0, userLDAPModel?.Username, userLDAPModel?.Password, userLDAPModel?.FullName, null, userLDAPModel != null ? userLDAPModel.Role : RoleOptions.Student, StatusOptions.Actived) { }