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.

CompanyMappingProfile.cs 629B

1234567891011121314151617181920212223242526
  1. using AutoMapper;
  2. using Diligent.WebAPI.Data.Entities;
  3. using Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo;
  4. namespace Diligent.WebAPI.Host.Mapper
  5. {
  6. public class CompanyMappingProfile : Profile
  7. {
  8. public CompanyMappingProfile()
  9. {
  10. #region Models to DTOs
  11. //sql
  12. //mongo
  13. CreateMap<InsuranceCompanyMongo, InsuranceCompanyReadDTO>();
  14. #endregion
  15. #region DTOs to Models
  16. //sql
  17. //mongo
  18. CreateMap<InsuranceCompanyCreateDTO, InsuranceCompanyMongo>();
  19. #endregion
  20. }
  21. }
  22. }