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("/")); }
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); }