Пример #1
0
 //business layer try catch statment for getting admin details
 public object AdminDetails(GETSET objUserBusinessLayer)
 {
     try
     {
         return(objUserDAL.GetAdminAccountDetails(objUserBusinessLayer));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 //business layer try catch statment for updating product details
 public object UpdateProductDetails(GETSET objUserBusinessLayer)
 {
     try
     {
         return(objUserDAL.UpdateProductDetails(objUserBusinessLayer));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #3
0
 //business layer try catch statment for user registration
 public object UserRegistration(GETSET objUserBusinessLayer)
 {
     try
     {
         return(objUserDAL.UpdateRegistration(objUserBusinessLayer));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #4
0
 //business layer try catch statment for inserting new products
 public string InsertNewProduct(GETSET objUserBusinessLayer)
 {
     try
     {
         return(objUserDAL.AddNewProduct(objUserBusinessLayer));
     }
     catch (Exception)
     {
         throw;
     }
     finally
     {
         objUserDAL = null;
     }
 }
Пример #5
0
 //business layer try catch statment for inserting user details
 public string InsertUserDetails(GETSET objUserBusinessLayer)
 {
     try
     {
         return(objUserDAL.AddRegistration(objUserBusinessLayer));
     }
     catch (Exception)
     {
         throw;
     }
     finally
     {
         objUserDAL = null;
     }
 }
Пример #6
0
 //business layer try catch statment for checking account details
 public string CheckAccountDetails(GETSET objUserBusinessLayer)
 {
     try
     {
         if (objUserDAL.CheckAccountCustomer(objUserBusinessLayer) != null)
         {
             return(objUserDAL.CheckAccountCustomer(objUserBusinessLayer));
         }
         else if (objUserDAL.CheckAccountAdmin(objUserBusinessLayer) != null)
         {
             return(objUserDAL.CheckAccountAdmin(objUserBusinessLayer));
         }
         else
         {
             return(null);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }