Exemplo n.º 1
0
 public bool UpdateProperty(Property newProperty)
 {
     try
     {
         OperationsObj = new SellerOperations();
         return(OperationsObj.UpdateProperty(newProperty));
     }
     catch (SellerException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 public List <Property> viewProp(int sellerID)
 {
     try
     {
         OperationsObj = new SellerOperations();
         return(OperationsObj.viewProperties(sellerID));
     }
     catch (SellerException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 3
0
 public int GetSellerId(string userName)
 {
     try
     {
         OperationsObj = new SellerOperations();
         return(OperationsObj.GetSellerId(userName));
     }
     catch (UserException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 4
0
 public List <State> GetStates()
 {
     try
     {
         OperationsObj = new SellerOperations();
         return(OperationsObj.GetStates());
     }
     catch (UserException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 5
0
 public List <City> Get_City(int cityId)
 {
     try
     {
         OperationsObj = new SellerOperations();
         return(OperationsObj.GetCity(cityId));
     }
     catch (UserException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 6
0
 public bool AddSeller(Seller newSeller)
 {
     try
     {
         OperationsObj = new SellerOperations();
         return(OperationsObj.AddSeller(newSeller));
     }
     catch (SellerException ex)
     {
         throw new Exception(ex.Message);
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 7
0
 public List <City> GetCities(int stateId)
 {
     try
     {
         OperationsObj = new SellerOperations();
         return(OperationsObj.GetCityByState(stateId));
     }
     catch (SellerException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 8
0
 public List <State> GetStateById(int stateId)
 {
     try
     {
         OperationsObj = new SellerOperations();
         return(OperationsObj.GetStateById(stateId));
     }
     catch (SellerException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 9
0
 public List <State> Get_State(int stateId)
 {
     try
     {
         e = new SellerOperations();
         return(e.Get_State(stateId));
     }
     catch (UserException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 10
0
 public Property GetProp(int propId)
 {
     try
     {
         OperationsObj = new SellerOperations();
         return(OperationsObj.GetPropertyById(propId));
     }
     catch (SellerException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 11
0
 public Property GetProp(int propId)
 {
     try
     {
         e = new SellerOperations();
         return(e.GetProp(propId));
     }
     catch (UserException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 12
0
 public void AddProperty(Property newProperty)
 {
     try
     {
         e = new SellerOperations();
         {
             e.AddProperty(newProperty);
         }
     }
     catch (UserException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 13
0
        public List <Property> viewProp(int sellerID, bool?status)
        {
            try
            {
                e = new SellerOperations();

                {
                    return(e.viewProperties(sellerID, status));
                }
            }
            catch (UserException)
            {
                throw;
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 14
0
        public bool AddSeller(Seller newSeller)
        {
            bool sellerAdded = false;

            try
            {
                e = new SellerOperations();
                if (ValidateSeller(newSeller))
                {
                    e.AddSeller(newSeller);
                }
            }
            catch (SellerException ex)
            {
                throw new Exception(ex.Message);
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
            return(sellerAdded);
        }
Exemplo n.º 15
0
        public bool UpdateProperty(Property newProperty)
        {
            bool sellerAdded = false;

            try
            {
                e = new SellerOperations();

                {
                    e.UpdateProperty(newProperty);
                }
            }
            catch (UserException)
            {
                throw;
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
            return(sellerAdded);
        }