Beispiel #1
0
 // POST: api/Weeks
 public IHttpActionResult Post([FromBody] week value)
 {
     try
     {
         return(ResponseMessage(Request.CreateResponse(new
         {
             response = weekService.insertWeek(value)
         })));
     }
     catch (Exception e)
     {
         return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e.ToString())));
     }
 }