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

PerformAttack() private method

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