public static void Update(User user)
{
user.Name = user.Email;
User user2 = GetUser(user.Email);
if (user2 != null && user2.ID != user.ID)
throw new Exception("There is another user has the same e-mail, please choose another e-mail");
UserDataMapper.Update(user);
}