Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            try
            {
                appointmentBusiness.Delete(id);

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