Esempio n. 1
0
 // DELETE: api/OfferApi/5
 public IHttpActionResult Delete(short id)
 {
     try
     {
         _offerAppService.Delete(id);
         return(Ok());
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
Esempio n. 2
0
 public ActionResult DeleteConfirmed(short id)
 {
     try
     {
         _offerAppService.Delete(id);
         return(RedirectToAction("Index"));
     }
     catch (Exception e)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.Conflict));
     }
 }