public void UpdateComment(baseCommentView view) { #if visual #else Data.Services.CommentService svc = new Data.Services.CommentService(); svc.UpdateComment(ConvertToModel(view)); #endif }
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 }