public static User Map(this UserDTO source)
        {
            User target = new User();

            target.Id = source.Id;
            target.FirstName = source.FirstName;
            target.LastName = source.LastName;
            target.Password = source.Password;
            target.Email = source.Email;

            return target;
        }
Example #2
0
 public void Update(User user)
 {
     _uow.Users.Update(user);
     _uow.Save();
 }
Example #3
0
 public void AddUser(User user)
 {
     _uow.Users.Add(user);
     _uow.Save();
 }