BattleGame.Server.Controllers.BattleController.PerformMove C# (CSharp) Method

PerformMove() private method

private PerformMove ( string sessionKey, int gameId, [ move ) : HttpResponseMessage
sessionKey string
gameId int
move [
return System.Net.Http.HttpResponseMessage
        public HttpResponseMessage PerformMove(string sessionKey, int gameId, [FromBody]
                                               MoveModel move)
        {
            var responseMsg = this.PerformOperation(() =>
            {
                var userId = UserDataPersister.LoginUser(sessionKey);
                BattleDataPersister.PerformMove(userId, gameId, move.UnitId, move.Position.X, move.Position.Y);
            });
            return responseMsg;
        }