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; }
public void Update(User user) { _uow.Users.Update(user); _uow.Save(); }
public void AddUser(User user) { _uow.Users.Add(user); _uow.Save(); }