示例#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));
        }