public CommentsDto(Dal.Comments c) { CommentId = c.CommentId; UserId = c.UserId; RequestCode = c.RequestCode; Summarry = c.Summarry; Date = c.Date; }
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); }