public ActionResult check(int userid, string username, string password, string type) { user user = new user(); userservicer us = new userservicer(); Playerservice ps = new Playerservice(); if (type == "SUBMIT") { ViewData["signup"] = "false"; Boolean x = us.check(userid); if (x == true) { ViewData["tested"] = "true"; } else { ViewData["tested"] = "false"; } player[] arr = ps.getall(); return(View(arr)); } else { ViewData["signup"] = "true"; } return(View()); }
public ActionResult editplayer() { player[] players = ps.getall(); return(View(players)); }