示例#1
0
        public DataSet GetFilteredAddress(string countryId, string stateId, string isActive)
        {
            bool ia;

            ia = isActive == "1" ? true : false;
            return(AddressBookDB.GetFilteredAddressbook(countryId, stateId, ia));
        }
示例#2
0
        public void UpdateAddress(int addressId, int stateId, int userId, string firstName, string lastName, string emailId, string phoneNo, string address1, string address2, string city, string street, long zipCode, bool isActive)
        {
            Address objAddbook = new Address(addressId, stateId, userId, firstName, lastName, emailId, phoneNo, address1, address2, street, city, zipCode, isActive);

            objAddbook.Validate();
            AddressBookDB.ManageAddress(objAddbook, ActionType.Edit);
        }
示例#3
0
 public DataSet GetUserAddress()
 {
     return(AddressBookDB.GetUserAddresses());
 }
示例#4
0
        public void DeleteAddress(int adressId)
        {
            Address objAddbook = new Address(adressId, 0, 0, "", "", "", "", "", "", "", "", 0, false);

            AddressBookDB.ManageAddress(objAddbook, ActionType.Delete);
        }
示例#5
0
 public Address GetAddress(int addressId)
 {
     return(AddressBookDB.GetAddress(addressId));
 }
示例#6
0
 public void InsertAddress(Address objAddbook)
 {
     objAddbook.Validate();
     AddressBookDB.ManageAddress(objAddbook, ActionType.Add);
 }
示例#7
0
 public ContctService(AddressBookDB _context)
 {
     this.context = _context;
     this.solr    = ServiceLocator.Current.GetInstance <ISolrOperations <DataServices.Contact> >();
 }