public async Task <bool> DeleteByScheduleAsync(Guid teamScheduleId)
        {
            var entities = await _table.ReadManyAsync("TeamScheduleId = @teamScheduleId", new { teamScheduleId });

            if (!entities.Any())
            {
                return(true);
            }
            return(await _table.DeleteWhereAsync("TeamScheduleId = @teamScheduleId", new { teamScheduleId }));
        }
Example #2
0
        public async Task <bool> DeleteAsync(Guid teamScheduleId)
        {
            var entities = await ReadForScheduleId(teamScheduleId);

            if (!entities.Any())
            {
                return(true);
            }
            var result = await _table.DeleteWhereAsync("TeamScheduleId = @teamScheduleId", new { teamScheduleId });

            return(result);
        }
Example #3
0
 public async Task <bool> DeleteCaptainAsync(TeamCaptainEntity entity)
 {
     return(await _table.DeleteWhereAsync("SummonerId = @summonerId AND TeamRosterId = @teamRosterId",
                                          new { summonerId = entity.SummonerId, teamRosterId = entity.TeamRosterId }));
 }