// 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()) }); }
public HttpResponseMessage Delete(int id) { return(LogicPresentDay.RemovePresent(id) ? Request.CreateResponse(HttpStatusCode.OK) : Request.CreateResponse(HttpStatusCode.BadRequest, "Can not remove from DB")); }