Example #1
0
 // DELETE: api/orders/5
 public IHttpActionResult Delete(int id)
 {
     try
     {
         _orderManager.Delete(id);
         return(Ok(new SuccessDTO <int>(id)));
     }
     catch (Exception)
     {
         return(Ok(new FailureDTO <ErrorMessageDTO>(new ErrorMessageDTO()
         {
             Message = "Inexistant Order"
         })));
     }
 }