コード例 #1
0
        public override System.Web.Mvc.ActionResult EnterEquipment(EWS.Domain.Model.EnterEquipmentQuote model)
        {
            var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.EnterEquipment);

            ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "model", model);
            EnterEquipmentOverride(callInfo, model);
            return(callInfo);
        }
コード例 #2
0
        public virtual ActionResult EnterEquipment(EWS.Domain.Model.EnterEquipmentQuote model)
        {
            QuoteService srv = new QuoteService(_commandProcessor, _queryProcessor, _currentUserFactory);

            if (ModelState.IsValid)
            {
                string errmsg = srv.SaveQuote(model);
                if (errmsg == string.Empty)
                {
                    return(RedirectToActionPermanent(MVC.Quote.Quote(model.QuoteID)));
                }
                else
                {
                    ModelState.AddModelError("", errmsg);
                }
            }
            LoadContractTermData(srv);
            return(View(model));
        }
コード例 #3
0
 partial void EnterEquipmentOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, EWS.Domain.Model.EnterEquipmentQuote model);