Exemple #1
0
 /// <summary>
 /// Constructeur pour mapper dto en Message
 /// </summary>
 /// <param name="dto"></param>
 /// <param name="objuser"></param>
 public Message(MessageDTO dto, Registered objuser) : this()
 {
     IdMessage      = dto.IdMessage;
     IdTopic        = dto.IdTopic;
     ObjUser        = objuser;
     DateMessage    = dto.DateMessage;
     ContentMessage = AuditTool.StringToRtf(dto.ContentMessage);
     DTO            = dto;
 }
Exemple #2
0
 /// <summary>
 /// Constructeur pour mapper dto en Topic
 /// </summary>
 /// <param name="dto"></param>
 /// <param name="objuser"></param>
 /// <param name="objrubric"></param>
 public Topic(TopicDTO dto, Registered objuser, Rubric objrubric) : this()
 {
     IdTopic    = dto.IdTopic;
     ObjUser    = objuser;
     ObjRubric  = objrubric;
     DateTopic  = dto.DateTopic;
     TitleTopic = dto.TitleTopic;
     DescTopic  = AuditTool.StringToRtf(dto.DescTopic);
     DTO        = dto;
 }