Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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;
     }
 }