示例#1
0
        public void Create(DancerModel dancer)
        {
            if (dancer == null)
            {
                // TODO : Business Exception
            }

            dancerRepository.Add(dancer);
        }
示例#2
0
        public async Task <DancerDto> GetDancer(int id)
        {
            DancerModel model = await dancerService.GetAsync(id).ConfigureAwait(false);

            return(mapper.Map <DancerDto>(model));
        }