Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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)); }));
 }
Exemplo n.º 4
0
 public void Delete([FromRoute] string code)
 {
     _playerRepository.Delete(code);
 }
 public async Task <Player> Delete(Guid id)
 {
     return(await repo.Delete(id));
 }
Exemplo n.º 6
0
 public void Delete(string code)
 {
     _playerRepository.Delete(code);
 }