private PerformDefend ( string sessionKey, int gameId, [ unitId ) : |
||
sessionKey | string | |
gameId | int | |
unitId | [ | |
return |
public HttpResponseMessage PerformDefend(string sessionKey, int gameId, [FromBody] int unitId)
{
var responseMsg = this.PerformOperation(() =>
{
var userId = UserDataPersister.LoginUser(sessionKey);
BattleDataPersister.PerformDefend(userId, gameId, unitId);
});
return responseMsg;
}
}