public DatabaseIdentityModel ToDbModel() { var dbModel = new DatabaseIdentityModel() { Guid = this.Guid, Username = this.Username, FirstName = this.FirstName, LastName = this.LastName, Email = this.Email, Password = this.Password, Status = this.Status }; return(dbModel); }
public static MvcIdentityModel New(DatabaseIdentityModel identity) { if (identity == default(DatabaseIdentityModel)) { return(default(MvcIdentityModel)); } var computed = new MvcIdentityModel() { Guid = identity.Guid, Username = identity.Username, FirstName = identity.FirstName, LastName = identity.LastName, Email = identity.Email, Password = identity.Password, Status = identity.Status }; return(computed); }