Exemplo n.º 1
0
 public static asp.RegisterFormModel toForm(this local.User model)
 {
     return(new asp.RegisterFormModel
     {
         Id = model.Id,
         Email = model.Email,
         Password = model.Password,
         LastName = model.LastName,
         FirstName = model.FirstName,
         BirthDate = model.BirthDate,
     });
 }
Exemplo n.º 2
0
 public static dal.User toDal(this local.User u)
 {
     return(new dal.User
     {
         Id = u.Id,
         Email = u.Email,
         Password = u.Password,
         LastName = u.LastName,
         FirstName = u.FirstName,
         BirthDate = u.BirthDate,
         IsActive = u.IsActive,
         IsAdmin = u.IsAdmin
     });
 }