public ActionResult Create(RegisterGardenModel model)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    model = SetupViewModel(model);
                    return View(model);
                }

                var gardenResponse = GardenServices.RegisterGarden(new GardenRegistration()
                                              {
                                                  Address = model.Address,
                                                  //CityId = model.CityId,
                                                  //CountyId = model.CountyId,
                                                  EmailAddress = model.EmailAddress,
                                                  FirstName = model.FirstName,
                                                  GardenName = model.GardenName,
                                                  GardenReasons = model.SelectedGardenReasons,
                                                  GardenSizeId = model.GardenSizeId,
                                                  GardenTypeId = model.GardenTypeId,
                                                  GroupName = model.GroupName,
                                                  PlantTypes = model.SelectedPlantTypes,
                                                  LastName = model.LastName,
                                                  Zipcode = model.ZipCode,
                                                  CanBeContactedByNas = model.IsWillingToBeContactedByNas,
                                                  City = model.City,
                                                  County = model.County
                                              });

                if (gardenResponse.WasSuccessful)
                    return RedirectToAction("ThankYou", new { id = gardenResponse.GardenId });

                model = SetupViewModel(model);
                return View(model);
            }
            catch (Exception ex)
            {
                model = SetupViewModel(model);
                ModelState.AddModelError("", ex.Message);
                return View(model);
            }
        }
 private RegisterGardenModel SetupViewModel(RegisterGardenModel model)
 {
     model.GardenSizes = GardenSizeService.GetGardenSizeSelectList();
     model.GardenTypes = GardenTypeService.GetGardenTypesSelectList();
     model.GardenReasons = GardenReasonService.GetAllGardenReasons();
     model.PlantTypes = PlantTypeService.GetAllPlantTypes();
     return model;
 }