public ActionResult ConfirmNoticeDelete(int id) { if (CheckAccess()) { noticerepo.Delete(id); return(RedirectToAction("ViewAllNotice", "Admin")); } else { return(RedirectToAction("Login", "Home")); } }
public IHttpActionResult ConfirmNoticeDelete(int id) { noticerepo.Delete(id); return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult DeleteNoticeByID([FromUri] int id) { noticerepo.Delete(id); return(StatusCode(HttpStatusCode.NoContent)); }
public ActionResult DeleteNotice(int id) { noticeRepository.Delete(id); return(RedirectToAction("PostedNotification", "Admin")); }