Exemplo n.º 1
0
        public void AddCommentUniversity(CommentUniversityDto commentUniversityDto)
        {
            var commentUniversity = new CommentUniversity
            {
                Subject      = commentUniversityDto.Subject,
                Message      = commentUniversityDto.Message,
                UserId       = commentUniversityDto.UserId,
                UniversityId = commentUniversityDto.UniversityId
            };

            _commentRepository.AddCommentUniversity(commentUniversity);
        }
 public void AddCommentUniversity(CommentUniversity commentUniversity)
 {
     Add(commentUniversity);
     SaveChanges();
 }