public ActionResult DeleteConfirmed(int id)
        {
            var docBll = new DoctorBLL();

            docBll.Delete(id);
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        public ActionResult DeleteConfirmed(int id)
        {
            try
            {
                doctorBusiness.Delete(id);

                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                Log.Error(ex.Message, ex);
                return(View());
            }
        }