public ActionResult Index() { var model = new MonthlyCalculateModel(); var occupationController = new OccupationsController(); model.Occupations = occupationController.GetOccupations().Select(item => new SelectListItem() { Text = item.Name, Value = item.Factor.ToString() }); model.SumInsured = 100000; model.DateOfBirth = DateTime.Now.Date; return(View(model)); }
// GET: /MonthlyPremium/ public ActionResult Index() { var model = new MonthlyCalculateModel(); return(View(model)); }