public EndUser ReturnWithoutSensitiveData() { var userWithoutSensitiveData = new EndUser(this); userWithoutSensitiveData.Email = null; userWithoutSensitiveData.Password = null; userWithoutSensitiveData.Salt = null; return(userWithoutSensitiveData); }
public EndUser(EndUser user) { Id = user.Id; Name = user.Name; LastName = user.LastName; Email = user.Email; Password = user.Password; Salt = user.Salt; IsActive = user.IsActive; DateJoined = user.DateJoined; Role = user.Role; EmailConfirmed = user.EmailConfirmed; }