public ActionResult RaidGroupApply(RaidApplicationInfo item)
        {
            ViewBag.ApplyMessage = null;

            if (item.CharacterId == 0)
            {
                ModelState.AddModelError("CharList", "You must select a character.");
            }

            if (ModelState.IsValid)
            {
                try
                {
                    ViewBag.ApplyMessage = m.ApplyGroupToRaid(item);
                }
                catch (Exception e)
                {
                    return(HttpNotFound());
                }
            }

            var o    = m.RaidDetailsGetById(item.Id);
            var form = new RaidApplicationForm();

            form.Leader    = o.Leader;
            form.EventName = o.Event.Name;
            form.Id        = o.Id;
            form.CharList  = new SelectList(m.getMyGroupCharacters(HttpContext.User.Identity.Name, o.Id), dataValueField: "Id", dataTextField: "Name");
            return(View(form));
        }
        public ActionResult RaidGroupApply(int?id)
        {
            var o    = m.RaidDetailsGetById(id);
            var form = new RaidApplicationForm();

            form.Leader    = o.Leader;
            form.EventName = o.Event.Name;
            form.Id        = o.Id;
            form.CharList  = new SelectList(m.getMyGroupCharacters(HttpContext.User.Identity.Name, o.Id), dataValueField: "Id", dataTextField: "Name");
            return(View(form));
        }