public ActionResult DeleteConfirmed(int id) { try { appointmentBusiness.Delete(id); return(RedirectToAction("Index")); } catch (Exception ex) { Log.Error(ex.Message, ex); return(View()); } }
protected void btnDelete_Click(object sender, EventArgs e) { //lbluserisnt what to delete if (_app.Delete(Convert.ToInt32(lblUserID.Text))) { lblDesc.Text = "Appointment Removed"; clear(); } else { lblDesc.Text = "Failed to Remove Appointment"; } }
public ActionResult DeleteConfirmed(int id) { appBLL.Delete(id); return(RedirectToAction("Index")); }