コード例 #1
0
ファイル: InvestController.cs プロジェクト: sskset/ace
        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 }));
        }
コード例 #2
0
ファイル: InvestController.cs プロジェクト: sskset/ace
        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 }));
        }
コード例 #3
0
 public void ArriveAtStation(ActionStation station)
 {
     aStation   = station;
     hasStation = true;
 }