public bool CustomerLoginBL(Customer objLoginCustomer) { bool Login = false; try { if (ValidateCustomer(objLoginCustomer)) { CustomerDAL customerDAL = new CustomerDAL(); Login = customerDAL.CustomerLoginDAL(objLoginCustomer); } else { throw new RecipeIngredientSystemExceptions("Incorrect Username or Password"); } } catch (RecipeIngredientSystemExceptions) { throw; } catch (Exception ex) { throw ex; } return(Login); }