示例#1
0
        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;
        }
示例#2
0
 public void Update(User user)
 {
     _uow.Users.Update(user);
     _uow.Save();
 }
示例#3
0
 public void AddUser(User user)
 {
     _uow.Users.Add(user);
     _uow.Save();
 }