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.")); }
public ActionResult <List <Model.Termin> > Get() { return(_service.Get()); }