public ActionResult Pay(int id) { var action = new InvestmentPayRequest(id); try { ActionStation.Invoke <InvestmentPayRequest>(action); } catch (BusinessException ex) { TempData["ActionResponse"] = ex.Message; } return(RedirectToAction("Index", new { id = action.InvestmentId })); }
public ActionResult Create(InvestViewModel vm) { var action = new InvestmentCreateRequest(_sequenceService.Next(SequenceID.ACE_Investment, 1), vm.AccountId, vm.ProjectId, vm.Amount); try { ActionStation.Invoke <InvestmentCreateRequest>(action); } catch (BusinessException ex) { TempData["ActionResponse"] = ex.Message; } return(RedirectToAction("Index", new { id = action.InvestmentId })); }