示例#1
0
        public void UpdateComment(baseCommentView view)
        {
#if visual
#else
            Data.Services.CommentService svc = new Data.Services.CommentService();
            svc.UpdateComment(ConvertToModel(view));
#endif
        }
示例#2
0
        public baseCommentView GetComment(int id)
        {
#if visual
            view = new baseCommentView()
            {
                Description   = @"Stub Comment",
                ID            = 1,
                RequirementID = 1
            };
            return(view);
#else
            QAManagement.Data.Services.CommentService svc = new Data.Services.CommentService();
            view = ConvertToView(svc.GetCommentById(ID));
            return(view);
#endif
        }