Пример #1
0
 public int Update(Customer aCustomer)
 {
     try
     {
         return customerGateway.Update(aCustomer);
     }
     catch (Exception exception)
     {
         throw (exception);
     }
 }
Пример #2
0
        public int Insert(Customer aCustomer)
        {
            try
            {
                return customerGateway.Insert(aCustomer);
            }
            catch (Exception expException)
            {

                throw (expException);
            }
        }
Пример #3
0
 public int Update(Customer aCustomer)
 {
     using (SqlConnection conn = new SqlConnection(this.connection))
     {
         try
         {
             SQL = "";
             SqlCommand cmd = new SqlCommand(SQL, conn);
             conn.Open();
             result = cmd.ExecuteNonQuery();
             conn.Close();
             return result;
         }
         catch (Exception exception)
         {
             throw (exception);
         }
     }
 }