Beispiel #1
0
 public long AddUserProfile(UserProfileObject person)
 {
     try
     {
         return(_personRepository.AddUserProfile(person));
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(0);
     }
 }
Beispiel #2
0
        static void Seed()
        {
            var GameRepo = new GameRepository();
            var UserRepo = new UserProfileRepository();
            var WordRepo = new WordBankRepository();
            var RoleRepo = new RoleRepository();
            var DicRepo  = new DictionaryRepository();

            DicRepo.AddDictionary(DictionaryList.OrderBy(d => d.Word).Distinct().ToList());
            foreach (var item in Roles)
            {
                RoleRepo.AddRole(item);
            }
            UserRepo.AddUserProfile(UserProfile);
            Console.WriteLine("User Added");
            GameRepo.AddGame(Game);
            Console.WriteLine("Game Added");
            WordRepo.AddWordBank(WordBank);
            Console.WriteLine("Word Added");
        }
Beispiel #3
0
 public int AddUserProfile(UserProfile profile)
 {
     return(_profileRepository.AddUserProfile(profile));
 }