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

            docBll.Delete(id);
            return(RedirectToAction("Index"));
        }
예제 #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            try
            {
                doctorBusiness.Delete(id);

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