Beispiel #1
0
 public static UserAccountModel CreateUser(UserAccountModel userModel)
 {
     using (var _context = new bbbsDbContext())
     {
         var newUser = _context.Add(TransformHelpers.ModelToUserAccount(userModel));
         _context.SaveChanges();
         userModel.Id = newUser.Entity.Id;
         return(userModel);
     }
 }