Exemplo n.º 1
0
 public ActionResult InviteGuild(GuildEditInfo item)
 {
     foreach (var i in item.Characters)
     {
         m.GuildInvite(i, item.Id);
     }
     return(RedirectToAction("Index"));
 }
        public ActionResult GuildEdit(int?id, GuildEditInfo newItem)
        {
            //if (!ModelState.IsValid)
            //    return RedirectToAction("Details", new { id = newItem.Id });
            //if (id.GetValueOrDefault() != newItem.Id)
            //    return RedirectToAction("Index");

            //var editedItem = m.GuildEdit(newItem);

            //if (editedItem == null)
            //    return RedirectToAction("Index", new { id = newItem.Id });
            //else
            return(RedirectToAction("Details", new { id = newItem.Id }));
        }