Exemplo n.º 1
0
        public override System.Web.Mvc.ActionResult EnterCurrent(EWS.Domain.Model.EnterCurrentQuote model)
        {
            var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.EnterCurrent);

            ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "model", model);
            EnterCurrentOverride(callInfo, model);
            return(callInfo);
        }
Exemplo n.º 2
0
        public virtual ActionResult EnterCurrent(EWS.Domain.Model.EnterCurrentQuote 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));
        }
Exemplo n.º 3
0
 partial void EnterCurrentOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, EWS.Domain.Model.EnterCurrentQuote model);