예제 #1
0
        public async Task <string> Create(DirectorInputDto inputDto)
        {
            try
            {
                var director = mapper.Map <Entities.Model.Directors>(inputDto);
                directorRepository.Insert(director);
                await directorRepository.Save();

                return(inputDto.FullName);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
예제 #2
0
 public async Task Create(DirectorInputDto inputDto)
 {
     await DirectorService.Create(inputDto);
 }