public async Task <IActionResult> Get() { DTO.Scale dto_Scale = new DTO.Scale(); dto_Scale.LHSOwnsIt = _game.ScaleLHSPlateAsAllianceFieldLeftOwned; dto_Scale.RHSOwnsIt = _game.ScaleRHSPlateAsAllianceFieldLeftOwned; return(Ok(dto_Scale)); }
public async Task <IActionResult> Post([FromForm] DTO.Scale dto_Scale) { _game.ScaleLHSPlateAsAllianceFieldLeftOwned = dto_Scale.LHSOwnsIt; _game.ScaleRHSPlateAsAllianceFieldLeftOwned = dto_Scale.RHSOwnsIt; return(new NoContentResult()); }