// DELETE: api/PresentDay/4
 public HttpResponseMessage Delete(int id)
 {
     return((LogicPresentDay.RemovePresent(id)) ?
            new HttpResponseMessage(HttpStatusCode.OK) :
            new HttpResponseMessage(HttpStatusCode.BadRequest)
     {
         Content = new ObjectContent <String>("Can not remove from DB", new JsonMediaTypeFormatter())
     });
 }
예제 #2
0
 public HttpResponseMessage Delete(int id)
 {
     return(LogicPresentDay.RemovePresent(id) ?
            Request.CreateResponse(HttpStatusCode.OK) :
            Request.CreateResponse(HttpStatusCode.BadRequest, "Can not remove from DB"));
 }