public HttpResponseMessage <List <Land> > GetAllByStatus(LandStatus landStatus, HttpRequestMessage request) { var landCollection = landRepository.GetLandByStatus(landStatus); foreach (var land in landCollection) { LandLinks.AddLinks(land, request); } return(new HttpResponseMessage <List <Land> >(landCollection) { StatusCode = HttpStatusCode.OK }); }