You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
576 B

  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. }
  19. }
  20. }