public IHttpActionResult ShowTeams()
        {
            var data = teamServices.ReturnAllTeams();

            return(Ok(data));
        }
 public ActionResult Create()
 {
     ViewBag.A = teamServices.ReturnAllTeams().ToList();
     ViewBag.B = teamServices.ReturnAllTeams().ToList();
     return(View());
 }
Beispiel #3
0
 public ActionResult Create()
 {
     ViewBag.Teams     = teamServices.ReturnAllTeams().ToList();
     ViewBag.Positions = positionServices.ReturnAllPositions().ToList();
     return(View());
 }
 //index
 public ActionResult Index(string searchByTeam, string searchTeam)
 {
     return(View(teamServices.ReturnAllTeams(searchByTeam, searchTeam)));
 }