Example #1
0
        public ActionResult RejectDoctor()
        {
            try
            {
                string url = Request.Url.AbsolutePath;
                url = url.Substring(url.LastIndexOf('/') + 1, (url.Length - 1) - url.LastIndexOf('/'));

                PezeshkPlusEntities db = new PezeshkPlusEntities();
                db.USP_DEL_Doctor(Convert.ToInt32(url));

                TempData["ActiveDoctor"] = "دکتر رد شد";
            }
            catch (Exception)
            {
                TempData["ActiveDoctor"] = "خطا دکتر رد نشد";
            }
            return(RedirectToAction("Panel"));
        }