public ActionResult Issue(QuoteModel newQuote)
        {
            if (newQuote.CarPrice == 0)
            {
                base.ViewBag.VehicleTypes
                    = InsuranceOneBizManager
                      .GetVehicleTypes()
                      .Select
                      (
                          vt =>
                {
                    return(new SelectListItem {
                        Text = vt, Value = vt
                    });
                }
                      )
                      .ToArray();

                base.ModelState.AddModelError("CarPrice", "Car price cannot be less than $ 1000.");
                return(base.View());
            }


            var signedInUser = (SignInModel)base.Session [SessionKeys.SIGNED_IN_USER_KEY];
            var issuedQuote  = InsuranceOneBizManager.AddQuote(newQuote, signedInUser.UserId);

            return(base.RedirectToAction("Show", new { quoteId = issuedQuote.QuoteId }));
        }
        public ActionResult Issue()
        {
            base.ViewBag.VehicleTypes
                = InsuranceOneBizManager
                  .GetVehicleTypes()
                  .Select
                  (
                      vt =>
            {
                return(new SelectListItem {
                    Text = vt, Value = vt
                });
            }
                  )
                  .ToArray();

            var newQuote
                = new QuoteModel
                {
                FromDate = DateTime.Today,
                ToDate   = DateTime.Today.AddMonths(6)
                };

            return(base.View(newQuote));
        }