Exemple #1
0
        public JsonResult CompleteTakeFeedback(string fbinitial = "")
        {
            // CommonController.Log(Session["id"].ToString() + "::" + "CompleteTakeFeedback-IN");
            var createdFeedback = (CreatedFeedback[])Session["CreatedFeedbacks"];
            var Request         = new SavePOEResultRequest {
                FeedbackId = createdFeedback[0].FeedBackId, FeedbackStatus = 2
            };

            Request.Initials = fbinitial;
            UpdateFeedbackStatus(Request);
            Session["PracticeArea"] = null;
            Session["fbtype"]       = 1;
            return(JsonResponse(true));
            // CommonController.Log(Session["id"].ToString() + "::" + "CompleteTakeFeedback-OUT");
        }
 public bool UpdateFeedbackStatus(SavePOEResultRequest request)
 {
     try
     {
         FeedbackBL feedbackBl = new FeedbackBL();
         feedbackBl.UpdateFeedbackStatus(request.FeedbackId, request.FeedbackStatus, request.Initials);
         return(true);
     }
     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(0, "UpdateFeedbackStatus", e.Message, 0);
     }
     return(true);
 }
Exemple #3
0
 public void UpdateFeedbackStatus(SavePOEResultRequest request, int?con = 0)
 {
     try
     {
         // CommonController.Log(Session["id"].ToString() + "::" + "UpdateFeedbackStatus-IN");
         var feedback = new FeedbackServiceClient();
         feedback.UpdateFeedbackStatus(request);
         // CommonController.Log(Session["id"].ToString() + "::" + "UpdateFeedbackStatus-OUT");
     }
     catch (Exception e)
     {
         var t = con + 1;
         if (t <= 2)
         {
             UpdateFeedbackStatus(request, t);
         }
     }
 }
Exemple #4
0
        /// <summary>
        /// Saves the result.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <param name="userCount">The user count.</param>
        /// <param name="userIndex">Index of the user.</param>
        public void SaveResult(SavePOEResultRequest request, int userCount = 1, int userIndex = 0)
        {
            DataAccess.SaveResult(request, userCount, userIndex);

            //If Feedback is completed then Create Activity For Manager and Self
        }