Exemple #1
0
 public void CreateUser(string email, string name)
 {
     var user = new User {Email = email.ToLower(), Name = name};
     DataContext.Current.Users.Add(user);
 }
 public UserInformationViewModel(User user)
 {
     var hash = user.Email.Trim().ToLower().ToMD5();
     ImageUrl = "http://www.gravatar.com/avatar/" + hash + "?s=256&default=http://www.geekhub.dk/person.png";
     DisplayName = user.Name;
 }