public JsonResult GetOccupations()
        {
            var occupationController = new OccupationsController();
            var OccupationList       = occupationController.GetOccupations();

            return(this.Json(OccupationList, JsonRequestBehavior.AllowGet));
        }
        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));
        }