Exemple #1
0
        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));
            }
        }