public ActionResult Register(RegisterViewModel viewModel)
        {
            DataRepository helper = new DataRepository();

            List<SelectListItem> items = new List<SelectListItem>();

            items.Add(new SelectListItem
             {
            Text = "Female",
            Value = "0"
            });
            items.Add(new SelectListItem
            {
                Text = "Male",
                Value = "1"
            });
            items.Add(new SelectListItem
            {
                Text = "Prefer not to say",
                Value = "2"
            });

            viewModel.GenderOptions = items;

            List<SelectListItem> dobItems = new List<SelectListItem>();
            int j = 0;
            for (int i = (int)DateTime.Now.Year; i > Convert.ToInt32(DateTime.Now.Year) - 122; i--)
            {
                dobItems.Add(new SelectListItem
                {
                    Text = i.ToString(),
                    Value = i.ToString()
                });
                j++;
            }

            dobItems.Add(new SelectListItem
            {
                Text = "Prefer not to say",
                Value = j.ToString()
            });

            viewModel.dobYearOptions = dobItems;

            List<SelectListItem> counties = new List<SelectListItem>();

            IList<County> allCounties = helper.getCounties();

            foreach (var county in allCounties)
            {
                counties.Add(new SelectListItem { Text = county.County1, Value = county.County1 });
            }

            viewModel.countyOptions = counties;

            return View(viewModel);
        }