// insering into database... public void AddBuyer(Buyer buyer) { try { buyerObj = new BuyerOperations(); buyerObj.InsertBuyer(buyer); } catch (Exception) { throw; } }
// insering into database... public void AddBuyer(Buyer buyer) { try { bo = new BuyerOperations(); // if (ValidateBuyer(buyer)) { bo.InsertBuyer(buyer); } } catch (Exception) { throw; } }
public int BuyerId(string userName) { try { BuyerOperations e = new BuyerOperations(); return(e.BuyerId(userName)); } catch (UserException) { throw; } catch (System.Exception ex) { throw ex; } }
public void GetBuyerId(int buyerId) { try { BuyerOperations e = new BuyerOperations(); e.GetBuyerId(buyerId); } catch (UserException) { throw; } catch (System.Exception ex) { throw ex; } }
public List <Property> GetPropertiesByPrice(int min, int max) { List <Property> propertyList = new List <Property>(); try { buyerObj = new BuyerOperations(); { propertyList = buyerObj.GetPropertiesByPrice(min, max); } } catch (Exception) { throw; } return(propertyList); }
public List <Property> showProperties(string state, string city) { List <Property> propertyList = new List <Property>(); try { buyerObj = new BuyerOperations(); { propertyList = buyerObj.ShowALLProperties(state, city); } } catch (Exception) { throw; } return(propertyList); }
public List <Property> showCart(int LoginID) { List <Property> propertyList = new List <Property>(); try { buyerObj = new BuyerOperations(); { propertyList = buyerObj.ShowCart(LoginID); } } catch (Exception) { throw; } return(propertyList); }
public List <Property> showProperties() { List <Property> propertyList = new List <Property>(); try { bo = new BuyerOperations(); { propertyList = bo.ShowALLProperties(); } } catch (Exception) { throw; } return(propertyList); }
public List <Property> DeletefromCart(int propID, int LoginID) { List <Property> propertyList = new List <Property>(); try { buyerObj = new BuyerOperations(); { propertyList = buyerObj.DeleteFromCart(propID, LoginID); } } catch (Exception) { throw; } return(propertyList); }
// add to cart.. public List <Property> AddToCart(int propID, int LoginID) { List <Property> propertyList = new List <Property>(); try { bo = new BuyerOperations(); { propertyList = bo.AddToCart(propID, LoginID); } } catch (Exception) { throw; } return(propertyList); }