예제 #1
0
        public static bool DeleteAddress(long addressId)
        {
            SqlAddressProvider sqlAddressProvider = new SqlAddressProvider();
            var isDelete = sqlAddressProvider.DeleteAddress(addressId);

            return(isDelete);
        }
예제 #2
0
        public static bool UpdateAddress(PropertyAddress address)
        {
            SqlAddressProvider sqlAddressProvider = new SqlAddressProvider();
            var isUpdate = sqlAddressProvider.UpdateAddress(address);

            return(isUpdate);
        }
예제 #3
0
        public static long InsertAddress(Models.Property.PropertyAddress address)
        {
            SqlAddressProvider sqlAddressProvider = new SqlAddressProvider();
            var id = sqlAddressProvider.InsertAddress(address);

            return(id);
        }
예제 #4
0
        public static List <PropertyAddress> GetAllAddresss()
        {
            SqlAddressProvider sqlAddressProvider = new SqlAddressProvider();
            var allAddresss = sqlAddressProvider.GetAllAddresss();

            return(allAddresss);
        }
예제 #5
0
        public static PropertyAddress GetAddressByPropertyId(long propertyId)
        {
            SqlAddressProvider sqlAddressProvider = new SqlAddressProvider();

            return(sqlAddressProvider.GetAddressByPropertyId(propertyId));
        }