public async Task <DTOs.BandDetails> Create(DTOs.CreateBand request) { var boss = await banditRepository.Get(request.Boss.Id); if (boss == null) { throw new NotFoundException("Bandit", request.Boss.Id); } var band = Band.Create(request.Name, boss); band = await bandRepository.Add(band); return(band.ToDtoDetails()); }