public void EditAddress(Library.Address address)
 {
     if (_db.Address.Find(address.AddressId) != null)
     {
         _db.Address.Update(AddressMapper.Map(address));
     }
 }
 public IEnumerable <Library.Address> GetAddress()
 {
     return(_db.Address.Select(x => AddressMapper.Map(x)));
 }
        public Library.Address GetAddressByAddressId(int id)
        {
            var Address = _db.Address.Where(x => x.AddressId == id).FirstOrDefault();

            return(AddressMapper.Map(Address));
        }
 public void AddAddress(Library.Address address)
 {
     _db.Address.Add(AddressMapper.Map(address));
 }