Exemplo n.º 1
0
        public RedirectToRouteResult Create(PokerSetup model)
        {
            if (!ModelState.IsValid)
                return this.RedirectToAction(c => c.Create());

            var user = (User)HttpContext.Items["user"];

            var session = _sessionManager.StartNewSession(user, model);

            return this.RedirectToAction(c => c.Index(session.Id));
        }
Exemplo n.º 2
0
 private string[] Split(PokerSetup ps)
 {
     return ps.SplitValues();
 }