示例#1
0
        public RequestExtComment AddComment(int idRequest, string comment)
        {
            var requestComment = new RequestExtComment
            {
                DateOfWriting = DateTime.Now,
                Comment       = comment,
                IdRequest     = idRequest,
                User          = RequestSecurityService.GetUserInfo()
            };

            return(RequestsRepository.AddComment(requestComment));
        }
示例#2
0
 public RequestExtComment AddComment(RequestExtComment requestComment)
 {
     return(_databaseContext.RequestExtComments.Add(requestComment));
 }