Beispiel #1
0
 public IHttpActionResult Delete(int id)
 {
     try
     {
         auctionService.DeleteCategory(id);
         auctionService.Save();
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.ToString()));
     }
 }