Example #1
0
 // GET api/values/5
 public PublicationModel Get(int id)
 {
     if (HttpContext.Current.Request.Headers["Authorization"] == null)
     {
         throw new HttpResponseException(HttpStatusCode.Unauthorized);
     }
     return(new PublicationModel(manager.get(id)));
 }