public async Task <IActionResult> Ship([FromBody] ShipRequest request) { AssertExtensions.NotNull(request, nameof(request)); ShipsCreationModel model = _applicationMapper.Map(request); await _seeBattleGameService.AddShips(model); return(Ok()); }
public Task AddShips(ShipsCreationModel creationModel) { ThrowIfHasErrors(_validationService.Validate(creationModel)); return(_service.AddShips(creationModel)); }