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)); }
public RequestExtComment AddComment(RequestExtComment requestComment) { return(_databaseContext.RequestExtComments.Add(requestComment)); }