public HttpResponseMessage GetAllByType(int AddressType) { AddressBL blobj = new AddressBL(); var list = blobj.GetAddressesByType(AddressType); return(Request.CreateResponse(HttpStatusCode.OK, list)); }