public ActionResult RaidInvite(int?id)
        {
            var o = m.RaidDetailsGetById(id.GetValueOrDefault());

            if (o == null || o.Leader.UserAccount.Name != HttpContext.User.Identity.Name)
            {
                return(HttpNotFound());
            }
            else
            {
                var form = new RaidInviteForm();
                form.EventName     = o.Event.Name;
                form.ScheduledTime = o.ScheduledTime;
                form.CharList      = new MultiSelectList(m.getRaidCharList(id), dataValueField: "Id", dataTextField: "Name");
                form.Id            = o.Id;
                return(View(form));
            }
        }
        public ActionResult RaidInviteGuild(int?id)
        {
            var o = m.RaidDetailsGetById(id);
            var c = m.CharacterGetById(o.Leader.Id);

            if (c.Guild == null)
            {
                return(Content("<p> You're not in a guild </p>"));
            }
            if (o == null || o.Leader.UserAccount.Name != HttpContext.User.Identity.Name)
            {
                return(HttpNotFound());
            }
            else
            {
                var form = new RaidInviteForm();
                form.EventName     = o.Event.Name;
                form.ScheduledTime = o.ScheduledTime;
                form.CharList      = new MultiSelectList(m.getRaidCharListForGuild(id), dataValueField: "Id", dataTextField: "Name");
                form.Id            = o.Id;
                return(View(form));
            }
        }