Example #1
0
 public CommentsDto(Dal.Comments c)
 {
     CommentId   = c.CommentId;
     UserId      = c.UserId;
     RequestCode = c.RequestCode;
     Summarry    = c.Summarry;
     Date        = c.Date;
 }
Example #2
0
 public static Dal.Comments ToDal(Dto.CommentsDto c)
 {
     Dal.Comments comments = new Dal.Comments
     {
         CommentId   = c.CommentId,
         UserId      = c.UserId,
         RequestCode = c.RequestCode,
         Summarry    = c.Summarry,
         Date        = c.Date
     };
     return(comments);
 }