public EmployeeRepository(RepositoriesContext context) { _context = context; _mapper = new Mapper(new MapperConfiguration(x => { x.CreateMap <Employee, EmployeeDto>().ReverseMap(); x.CreateMap <EmployeeProgrammingLanguage, EmployeeProgrammingLanguageDto>().ReverseMap(); x.CreateMap <ProgrammingLanguage, ProgrammingLanguageDto>().ReverseMap(); })); }
public ProgrammingLanguageRepository(RepositoriesContext context) { _context = context; _mapper = new Mapper(new MapperConfiguration(x => x.CreateMap <ProgrammingLanguage, ProgrammingLanguageDto>().ReverseMap())); }