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