Example #1
0
        public HttpResponseMessage Get(string id)
        {
            var termin = terminService.Get(id);

            if (termin != null)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, termin));
            }
            return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Termin not found for provided id."));
        }
Example #2
0
 public ActionResult <List <Model.Termin> > Get()
 {
     return(_service.Get());
 }