예제 #1
0
파일: BL2.cs 프로젝트: Matt-Hayes/2019
 //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
파일: BL2.cs 프로젝트: Matt-Hayes/2019
 //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
파일: BL2.cs 프로젝트: Matt-Hayes/2019
 //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
파일: BL2.cs 프로젝트: Matt-Hayes/2019
 //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
파일: BL2.cs 프로젝트: Matt-Hayes/2019
 //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
파일: BL2.cs 프로젝트: Matt-Hayes/2019
 //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;
     }
 }