public HttpResponseMessage Get([FromODataUri] Guid key) { var gov = _rep.GetById(key); if (gov == null) { return(Request.CreateResponse(HttpStatusCode.NotFound)); } else { return(Request.CreateResponse(HttpStatusCode.OK, gov)); } }