コード例 #1
0
        public int GetFeedbackGivenCount(int userId, int subscriptionid, int poeId)
        {
            try
            {
                FeedbackBL feedbackBl = new FeedbackBL();

                return(feedbackBl.GetFeedbackGivenFull(userId, subscriptionid, poeId).Count);
                // UserAdmin userAdmin = new UserAdmin();
                //return userAdmin.GetGivenFeedBackCount(userId, poeId, subscriptionid);
            }
            catch (Exception e)
            {
                WebOperationContext.Current.OutgoingResponse.StatusCode        = HttpStatusCode.PreconditionFailed;
                WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message;
                BusinessLogic.Common.Common common = new BusinessLogic.Common.Common();
                common.CreateErrorLog(userId, "GetFeedbackGivenCount", e.Message, 0);
            } return(0);
        }