Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 недель назад
1 неделю назад
2 недель назад
1234567891011121314151617181920212223242526272829303132
  1. using AutoMapper;
  2. using Domain.BaseData;
  3. using Domain.Identity;
  4. using Models.BaseData;
  5. using Models.Identity;
  6. namespace Api
  7. {
  8. public class AutoMapperConfig : Profile
  9. {
  10. public AutoMapperConfig()
  11. {
  12. // Add as many of these lines as you need to map your objects
  13. CreateMap<Account, AccountModel>();
  14. CreateMap<Account, CheckLoginResponse>();
  15. CreateMap<Plant, PlantViewModel>();
  16. CreateMap<Plant, SavePlantViewModel>();
  17. CreateMap<SavePlantViewModel, Plant>();
  18. CreateMap<MiscellaneousImage, MiscellaneousImageViewModel>();
  19. CreateMap<MiscellaneousImageViewModel, SaveMiscellaneousImageViewModel>();
  20. CreateMap<SaveMiscellaneousImageViewModel, MiscellaneousImage>();
  21. }
  22. }
  23. }