Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 2 nedēļām
pirms 2 nedēļām
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. }