public Photos() { api = new resAPI(); config = new MapperConfiguration(cfg => { cfg.CreateMap <resources, resourcesDTO>(); cfg.CreateMap <atributes, atributesDTO>(); }); iMapper = config.CreateMapper(); }