public bool AddNewUser(User user) { try { IDBProvider dbProvider = ProviderFactory.CreateNewDBProvider(); dbProvider.AddUser(user); } catch (Exception ex) { Console.WriteLine(@"There is an error:" + ex.Message); return(false); } return(true); }