public ActionResult DeleteConfirmed(int id)
        {
            try
            {
                appointmentBusiness.Delete(id);

                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                Log.Error(ex.Message, ex);
                return(View());
            }
        }
Exemple #2
0
        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";
            }
        }
Exemple #3
0
 public ActionResult DeleteConfirmed(int id)
 {
     appBLL.Delete(id);
     return(RedirectToAction("Index"));
 }