public async Task <bool> Delete(int id, string userId) { var existringPlayer = await GetPlayerById(id, userId); if (existringPlayer == null) { return(false); } await _repository.Delete(existringPlayer); return(true); }
public async Task <ActionResult <int> > DeletePlayer(int id) { var status = await _repo.Delete(id); switch (status) { case PlayersRepositoryStatus.Deleted: return(Ok(id)); default: return(NotFound(id)); } }
public EitherAsync <Error, Unit> Delete(TenantId tenant, PlayerId id) { return(_decoratee.Delete(tenant, id) .Do(_ => { _versionMap.RecordEndVersion(GetEntityId(tenant, id)); })); }
public void Delete([FromRoute] string code) { _playerRepository.Delete(code); }
public async Task <Player> Delete(Guid id) { return(await repo.Delete(id)); }
public void Delete(string code) { _playerRepository.Delete(code); }