Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public async Task <IActionResult> Post([FromForm] DTO.Scale dto_Scale)
 {
     _game.ScaleLHSPlateAsAllianceFieldLeftOwned = dto_Scale.LHSOwnsIt;
     _game.ScaleRHSPlateAsAllianceFieldLeftOwned = dto_Scale.RHSOwnsIt;
     return(new NoContentResult());
 }