예제 #1
0
        public ActionResult Index(string email, string name)
        {
            if (!string.IsNullOrWhiteSpace(email) && !string.IsNullOrWhiteSpace(name))
            {
                var userId = User.Identifier();
                groupCore.Queue(email, name, userId);
            }

            return(this.Redirect("/"));
        }
예제 #2
0
        public void Register(string name, string email)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentException("name");
            }

            if (string.IsNullOrWhiteSpace(email))
            {
                throw new ArgumentException("email");
            }

            var userId = User.IdentifierSafe();

            core.Queue(email, name, userId);
        }