i have table "Address" in Database in which address are saved by Post codes/Zip Codes
i want to retrive these address by postCode But Its is Not working
Post code formate = Le2 2SN
here is my code
[Route("{id:length(6)}")]
public IHttpActionResult GetAddress(string id)
{
Address address = (db.Addresses.FirstOrDefault(x=>x.postCode == id.ToUpper() )) ;
}
Kindly help me . thanks