public JsonResult get() { int ID = Convert.ToInt32(User.Claims.Single(c => c.Type == "userid").Value); try { return(Json(playerRepo.getPlayer(ID))); } catch (Exception ex) { logError(ex); return(Json(null)); } }
public Player getPlayer(string playerName) { return(repo.getPlayer(playerName)); }