CONTROLLERS.

This commit is contained in:
MarcEricMartel
2022-11-02 18:00:48 -07:00
parent 8b776405be
commit c59c7ee9f1
7 changed files with 235 additions and 27 deletions

View File

@@ -9,5 +9,16 @@ public class InventoryUser : IdentityUser {
[Required, MinLength(1), MaxLength(30)]
public string LastName { get; set; }
public List<AddressModel> Adresses { get; set; }
public InventoryUser(SignUpUserModel sign) {
FirstName = sign.FirstName;
LastName = sign.LastName;
UserName = sign.FirstName + " " + sign.LastName;
NormalizedUserName = UserName.ToUpper();
NormalizedEmail = Email.ToUpper();
Email = sign.Email;
PhoneNumber = sign.Phone;
Adresses = sign.Adresses;
}
}