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.

CommentMappingProfile.cs 473B

12345678910111213141516171819
  1. using Diligent.WebAPI.Contracts.DTOs.Comment;
  2. namespace Diligent.WebAPI.Business.MappingProfiles
  3. {
  4. public class CommentMappingProfile:Profile
  5. {
  6. [ExcludeFromCodeCoverage]
  7. public CommentMappingProfile()
  8. {
  9. #region Models to DTO
  10. CreateMap<Comment, CommentViewDto>();
  11. #endregion
  12. #region DTO to Model
  13. CreateMap<CommentCreateDto, Comment>();
  14. #endregion
  15. }
  16. }
  17. }