//business layer try catch statment for getting admin details public object AdminDetails(GETSET objUserBusinessLayer) { try { return(objUserDAL.GetAdminAccountDetails(objUserBusinessLayer)); } catch (Exception ex) { throw ex; } }
//business layer try catch statment for updating product details public object UpdateProductDetails(GETSET objUserBusinessLayer) { try { return(objUserDAL.UpdateProductDetails(objUserBusinessLayer)); } catch (Exception ex) { throw ex; } }
//business layer try catch statment for user registration public object UserRegistration(GETSET objUserBusinessLayer) { try { return(objUserDAL.UpdateRegistration(objUserBusinessLayer)); } catch (Exception ex) { throw ex; } }
//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; } }
//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; } }
//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; } }