예제 #1
0
        public ActionResult Close(string id)
        {
            ViewBag.Message = "Closing";

            try
            {
                _bank.CloseAccount(id);
                TempData["Allert"] = "Success";
            }
            catch (Exception e)
            {
                TempData["Alert"]         = "Error";
                TempData["AllertMessage"] = e.Message;
            }

            return(View());
        }