public ActionResult AddRso(CreateRsoModel model)
        {
            SaveRsoRequest request = PrepareSaveRsoRequest(model);
            RsoConnection  conn    = new RsoConnection();

            conn.SaveRso(request);
            return(RedirectToAction("Home"));
        }
        public ActionResult JoinRSO()
        {
            ViewBag.Title = "Join RSO";
            RsoConnection conn  = new RsoConnection();
            JoinRsoModel  model = new JoinRsoModel();
            List <RegisteredStudentOrganization> rsos = conn.GetAllRsos();

            model.RegisteredStudentOrganizations = ConvertRsos(rsos);
            return(View(model));
        }
        public JsonResult JoinNewRso(int rsoId)
        {
            int           userId    = Convert.ToInt32(Session["UserId"]);
            RsoConnection conn      = new RsoConnection();
            bool          userInRso = conn.CheckIfUserIsInRso(userId, rsoId);

            if (userInRso)
            {
                return(Json("You've already joined this Rso!"));
            }

            conn.JoinRso(rsoId, userId);

            return(Json("Success! You've joined the RSO!"));
        }