Exemplo n.º 1
0
 // DELETE: api/Weeks/5
 public IHttpActionResult Delete(int id)
 {
     try
     {
         return(ResponseMessage(Request.CreateResponse(new
         {
             response = weekService.deleteWeek(id)
         })));
     }
     catch (Exception e)
     {
         return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e.ToString())));
     }
 }