Beispiel #1
0
 //Update Users
 public bool UpdateUser(Users user)
 {
     try
     {
         usersDA.UpdateUser(user);
     }
     catch (Exception ex)
     {
         ExceptionDA.StoreExceptions(ex);
         return(false);
     }
     return(true);
 }
Beispiel #2
0
        //call the DA layer to Create a new contract in the list
        public bool CreateContracts(Contracts contract)
        {
            bool check;

            try
            {
                check = contractsData.CreateContract(contract);
            }
            catch (Exception ex)
            {
                ExceptionDA.StoreExceptions(ex);
                check = false;
            }
            return(check);
        }
Beispiel #3
0
        public bool StoreExceptions(Exception Ex)
        {
            //store into a bool variable for test purposes
            bool check = ExceptionDA.StoreExceptions(Ex);

            //return check
            return(check);
        }
Beispiel #4
0
 public bool UpdateGame(Game game)
 {
     try
     {
         gameDataAccess.UpdateGame(game);
     }
     catch (Exception ex)
     {
         ExceptionDA.StoreExceptions(ex);
         return(false);
     }
     return(true);
 }