public ActionResult Login(loginModel loginCredentials)
        {
            //    ////create an instance of the user
            userModel currentUser = new userModel();
            //    ////create instance of userDataController
            ct2UserDataController userDataController = new ct2UserDataController("");

            //    ////send login credentials to userDataController and set returned user to our current instance
            currentUser = userDataController.GetLogin(loginCredentials);
            //    ////call LoggedIn

            return(LoggedIn(currentUser));
        }
        public ActionResult Register(FormCollection form)
        {
            userModel             usMod            = new userModel();
            ct2UserDataController inputCurrentUser = new ct2UserDataController("");


            usMod.firstName    = form["currentModel.firstName"];
            usMod.lastName     = form["currentModel.lastName"].ToString();
            usMod.phoneNumber  = form["currentModel.phoneNumber"].ToString();
            usMod.emailAddress = form["currentModel.emailAddress"].ToString();
            usMod.userPassword = form["currentModel.userPassword"].ToString();

            //companyIDFK
            //roleIDFK
            //userAddress
            //userTypeIDFK

            usMod = inputCurrentUser.CreateUser(usMod);

            return(Redirect("~/companyChoice/userManagement"));
        }