public ActionResult AddTeam(TeamViewModel teamViewModel) { if (Session["RoleID"] != null) { TeamDataAccess.AddTeam(Mapper.teamMap(teamViewModel.SingleTeam)); return(RedirectToAction("ViewTeams", "Team")); } else { return(RedirectToAction("Login", "User")); } }