public void Create(DancerModel dancer) { if (dancer == null) { // TODO : Business Exception } dancerRepository.Add(dancer); }
public async Task <DancerDto> GetDancer(int id) { DancerModel model = await dancerService.GetAsync(id).ConfigureAwait(false); return(mapper.Map <DancerDto>(model)); }