Ejemplo n.º 1
0
        public ActionResult AddTeamToRace(int raceEventId, int teamId)
        {
            var model = raceEventService.GetById(raceEventId);

            if (model.EventDate < DateTime.Now)
            {
                return(RaceAlreadyStarted());
            }

            teamService.AddTeamToRace(raceEventId, teamId, User.Identity.GetUserId());
            return(_TeamManagement(raceEventId));
        }
Ejemplo n.º 2
0
 public ActionResult AddTeamToRace(int raceEventId, int teamId)
 {
     teamService.AddTeamToRace(raceEventId, teamId, User.Identity.GetUserId());
     return(_TeamManagement(raceEventId));
 }