Ejemplo n.º 1
0
        public static bool DeleteAddress(long addressId)
        {
            SqlAddressProvider sqlAddressProvider = new SqlAddressProvider();
            var isDelete = sqlAddressProvider.DeleteAddress(addressId);

            return(isDelete);
        }
Ejemplo n.º 2
0
        public static bool UpdateAddress(PropertyAddress address)
        {
            SqlAddressProvider sqlAddressProvider = new SqlAddressProvider();
            var isUpdate = sqlAddressProvider.UpdateAddress(address);

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

            return(id);
        }
Ejemplo n.º 4
0
        public static List <PropertyAddress> GetAllAddresss()
        {
            SqlAddressProvider sqlAddressProvider = new SqlAddressProvider();
            var allAddresss = sqlAddressProvider.GetAllAddresss();

            return(allAddresss);
        }
Ejemplo n.º 5
0
        public static PropertyAddress GetAddressByPropertyId(long propertyId)
        {
            SqlAddressProvider sqlAddressProvider = new SqlAddressProvider();

            return(sqlAddressProvider.GetAddressByPropertyId(propertyId));
        }