public ActionResult SearchEvents(SearchEventsViewModel searchEventsVM, string searchString)
        {
            UserData ud = new UserData();
            string[] names = searchString.Split(null);
            string firstName;
            string lastName;
            string errorMessage = null;
            int userId;

            if(names.Length == 2)
            {
                firstName = names[0];
                lastName  = names[1];
            }
            else
            {
                errorMessage = "Search string in an unexpected format.  Expected: FirstName LastName";
                return View();
            }

            userId = searchEventsVM.GetUserIdByName(firstName, lastName);
            if(userId == -1)
            {
                errorMessage = "The searched for was not found";
                return View();
            }

            searchEventsVM.SearchString = searchString;
            searchEventsVM.GetEventsByUserId(userId);
            ViewData["ErrorMessage"] = errorMessage;

            return View("SearchEvents", searchEventsVM);
        }
        public ActionResult SearchEvents()
        {
            if (Session["UserId"] == null || (int)Session["UserId"] == 0)
            {
                ViewData["ErrorMessage"] = "You must be signed in to view this data";
                return Redirect("~/Account/Login");
            }

            SearchEventsViewModel model = new SearchEventsViewModel();
            //uvModel.GetEventsByUserId((int)Session["UserId"]);

            return View("SearchEvents", model);// "UserEvents", uvModel);
        }