public static bool DeleteAddress(long addressId) { SqlAddressProvider sqlAddressProvider = new SqlAddressProvider(); var isDelete = sqlAddressProvider.DeleteAddress(addressId); return(isDelete); }
public static bool UpdateAddress(PropertyAddress address) { SqlAddressProvider sqlAddressProvider = new SqlAddressProvider(); var isUpdate = sqlAddressProvider.UpdateAddress(address); return(isUpdate); }
public static long InsertAddress(Models.Property.PropertyAddress address) { SqlAddressProvider sqlAddressProvider = new SqlAddressProvider(); var id = sqlAddressProvider.InsertAddress(address); return(id); }
public static List <PropertyAddress> GetAllAddresss() { SqlAddressProvider sqlAddressProvider = new SqlAddressProvider(); var allAddresss = sqlAddressProvider.GetAllAddresss(); return(allAddresss); }
public static PropertyAddress GetAddressByPropertyId(long propertyId) { SqlAddressProvider sqlAddressProvider = new SqlAddressProvider(); return(sqlAddressProvider.GetAddressByPropertyId(propertyId)); }