Ejemplo n.º 1
0
 public List <UserPOEMapping> GetFeedbackRecevied(int userId, int subscriptionid, int poeId)
 {
     try
     {
         FeedbackBL feedbackBl = new FeedbackBL();
         return(feedbackBl.GetFeedbackRecevied(userId, subscriptionid, poeId));
     }
     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, "GetFeedbackRecevied", e.Message, 0);
     }
     return(null);
 }
Ejemplo n.º 2
0
        public int GetFeedbackReceivedCount(int userId, int subscriptionid, int poeId)
        {
            try
            {
                //   UserAdmin userAdmin = new UserAdmin();
                // return userAdmin.GetReceivedFeedback(userId, poeId, subscriptionid);
                FeedbackBL feedbackBl = new FeedbackBL();

                return(feedbackBl.GetFeedbackRecevied(userId, subscriptionid, poeId).Count);
            }
            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, "GetFeedbackReceivedCount", e.Message, 0);
            } return(0);
        }