Exemplo n.º 1
0
        // insering into database...
        public void AddBuyer(Buyer buyer)
        {
            try
            {
                buyerObj = new BuyerOperations();

                buyerObj.InsertBuyer(buyer);
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 2
0
 // insering into database...
 public void AddBuyer(Buyer buyer)
 {
     try
     {
         bo = new BuyerOperations();
         // if (ValidateBuyer(buyer))
         {
             bo.InsertBuyer(buyer);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
        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);
        }
Exemplo n.º 8
0
        public List <Property> showProperties()
        {
            List <Property> propertyList = new List <Property>();

            try
            {
                bo = new BuyerOperations();
                {
                    propertyList = bo.ShowALLProperties();
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(propertyList);
        }
Exemplo n.º 9
0
        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);
        }
Exemplo n.º 10
0
        // 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);
        }