示例#1
0
        public ActionResult Edit(int id, IFormCollection collection)
        {
            try
            {
                if (!_accountController)
                {
                    return(RedirectToAction("SignOff", "Account"));
                }

                // TODO: Add update logic here
                ViewBag.message = _cardRequestRepo.EditCardRequest(id, collection);

                return(RedirectToAction(nameof(Index)));
            }
            catch (Exception ex)
            {
                Activity activity = new Activity();

                activity.ErrorLog(ex.StackTrace, ex.Message, ex.Source, ex.InnerException.ToString());

                return(View());
            }
        }