Example #1
0
 public int AddCustomer_BLL(Customer pobj, Users users)
 {
     try
     {
         CustomerOperations pd = new CustomerOperations();
         return(pd.AddCustomer_DAL(pobj, users));
     }
     catch (TaxiExceptions)
     {
         throw;
     }
 }
Example #2
0
        public int AddCustomer_BLL(Customer pobj, Users users)
        {
            int cid = 0;

            try
            {
                CustomerOperations pd = new CustomerOperations();
                if (ValidateCustomer(pobj, users))
                {
                    cid = pd.AddCustomer_DAL(pobj, users);
                    return(cid);
                }
            }
            catch (CustomerException)
            {
                throw;
            }
            return(cid);
        }