示例#1
0
        private GameScoreTempModel GetUserGameScore(string _userName)
        {
            GameDataAccess.BLL.GameScoreTabelBLL gsBLL = new GameDataAccess.BLL.GameScoreTabelBLL();
            Model.GameScoreTabel gsModel    = gsBLL.GetGameScore(_userName);
            GameScoreTempModel   scoreModel = new GameScoreTempModel()
            {
                userName  = _userName,
                missenemy = gsModel.missenemy,
                score     = gsModel.score
            };

            return(scoreModel);
        }
示例#2
0
 private bool UpdateUserScore(string _userName, int _score, int _missed)
 {
     GameDataAccess.BLL.GameScoreTabelBLL gsBLL = new GameDataAccess.BLL.GameScoreTabelBLL();
     return(gsBLL.UpdateGameScore(_userName, _score, _missed));
 }