Ejemplo n.º 1
0
 public JsonResult AddTeam(Team teamData)
 {
     if (ModelState.IsValid)
     {
         var getTeamList = teamRepo.AddTeamData(teamData);
         Session["TeamID"] = getTeamList;
         return(Json(getTeamList));
     }
     else
     {
         return(null);
     }
 }