public bool UpdateProperty(Property newProperty) { try { OperationsObj = new SellerOperations(); return(OperationsObj.UpdateProperty(newProperty)); } catch (SellerException) { throw; } catch (System.Exception ex) { throw ex; } }
public List <Property> viewProp(int sellerID) { try { OperationsObj = new SellerOperations(); return(OperationsObj.viewProperties(sellerID)); } catch (SellerException) { throw; } catch (System.Exception ex) { throw ex; } }
public int GetSellerId(string userName) { try { OperationsObj = new SellerOperations(); return(OperationsObj.GetSellerId(userName)); } catch (UserException) { throw; } catch (System.Exception ex) { throw ex; } }
public List <State> GetStates() { try { OperationsObj = new SellerOperations(); return(OperationsObj.GetStates()); } catch (UserException) { throw; } catch (System.Exception ex) { throw ex; } }
public List <City> Get_City(int cityId) { try { OperationsObj = new SellerOperations(); return(OperationsObj.GetCity(cityId)); } catch (UserException) { throw; } catch (System.Exception ex) { throw ex; } }
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; } }
public List <City> GetCities(int stateId) { try { OperationsObj = new SellerOperations(); return(OperationsObj.GetCityByState(stateId)); } catch (SellerException) { throw; } catch (System.Exception ex) { throw ex; } }
public List <State> GetStateById(int stateId) { try { OperationsObj = new SellerOperations(); return(OperationsObj.GetStateById(stateId)); } catch (SellerException) { throw; } catch (System.Exception ex) { throw ex; } }
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; } }
public Property GetProp(int propId) { try { OperationsObj = new SellerOperations(); return(OperationsObj.GetPropertyById(propId)); } catch (SellerException) { throw; } catch (System.Exception ex) { throw ex; } }
public Property GetProp(int propId) { try { e = new SellerOperations(); return(e.GetProp(propId)); } catch (UserException) { throw; } catch (System.Exception ex) { throw ex; } }
public void AddProperty(Property newProperty) { try { e = new SellerOperations(); { e.AddProperty(newProperty); } } catch (UserException) { throw; } catch (System.Exception ex) { throw ex; } }
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; } }
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); }
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); }