Ejemplo n.º 1
0
        public ActionResult Add(string id, int currency, int cashType)
        {
            ViewBag.Message = "New cash";

            try
            {
                _bank.AddCash(id, (Currency)currency, (CashType)cashType);
                TempData["Allert"] = "Success";
            }
            catch (Exception e)
            {
                TempData["Alert"]         = "Error";
                TempData["AllertMessage"] = e.Message;
            }

            return(View());
        }