/// <summary> /// retreives users comments of a product /// </summary> /// <param name="productId">string</param> /// <returns></returns> public DataTable RetreiveProductComments(string productId) { IFeedbackDatabaseService feedbackDatabaseService = null; try { feedbackDatabaseService = DBDelegateFactory.Current.FeedbackDatabaseService; return(feedbackDatabaseService.RetreiveProductComments(productId)); } finally { feedbackDatabaseService = null; } }
/// <summary> /// insertes user comments /// </summary> /// <param name="userFeedback">FeedbackDAO</param> /// <returns></returns> public int InsertProductComment(FeedbackDAO userFeedback) { IFeedbackDatabaseService feedbackDatabaseService = null; try { feedbackDatabaseService = DBDelegateFactory.Current.FeedbackDatabaseService; return(feedbackDatabaseService.InsertProductComment(userFeedback)); } finally { feedbackDatabaseService = null; } }