public JsonResult Index(string year, string province)
        {
            Response.AppendHeader("Access-Control-Allow-Origin", "*");
            province = province.ToUpper();

            var tournament = Domain.TournamentQueries.GetTournament(year);
            var contingent = Domain.ContingentViewQueries.GetContingent(tournament.Id, province);

            if (contingent != null)
            {
                return(Json(contingent, JsonRequestBehavior.AllowGet));
            }

            var command = new MBACNationals.Contingent.Commands.CreateContingent();

            command.Id           = Guid.NewGuid();
            command.Province     = province;
            command.TournamentId = tournament.Id;
            Domain.Dispatcher.SendCommand(command);
            contingent = Domain.ContingentViewQueries.GetContingent(tournament.Id, province);

            return(Json(contingent, JsonRequestBehavior.AllowGet));
        }
        public JsonResult Index(string province)
        {
            Response.AppendHeader("Access-Control-Allow-Origin", "*");

            var contingent = Domain.ContingentViewQueries.GetContingent(province);

            if (contingent != null)
                return Json(contingent, JsonRequestBehavior.AllowGet);

            var command = new MBACNationals.Contingent.Commands.CreateContingent();
            command.Id = Guid.NewGuid();
            command.Province = province;
            Domain.Dispatcher.SendCommand(command);
            contingent = Domain.ContingentViewQueries.GetContingent(province);

            return Json(contingent, JsonRequestBehavior.AllowGet);
        }