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; } }
public async Task Create(DirectorInputDto inputDto) { await DirectorService.Create(inputDto); }