private TabSelectionViewModel GetCounts(TabSelectionViewModel tabSelection)
        {
            var userEmailId = User.Identity.Name;
            var user        = _containerUserService.FindUserByEmail(userEmailId);

            if (user != null)
            {
                var tabSelectionBusinessModel = _mappingService.Map <TabSelectionViewModel, TabSelectionBusinessModel>(tabSelection);
                tabSelectionBusinessModel.UserId = user.ID;
                tabSelectionBusinessModel        = _questionService.GetCounts(tabSelectionBusinessModel);
                tabSelection.ReadyForReviewCount = tabSelectionBusinessModel.ReadyForReviewCount;
                tabSelection.OnHoldCount         = tabSelectionBusinessModel.OnHoldCount;
                tabSelection.RejectedCount       = tabSelectionBusinessModel.RejectedCount;
            }
            return(tabSelection);
        }
        public JsonResult GetReviewQuestionsCounts(TabSelectionViewModel tabSelection)
        {
            var countInfo = GetCounts(tabSelection);

            return(Json(countInfo, JsonRequestBehavior.AllowGet));
        }
 // GET: QuestionReview
 public ActionResult Index(TabSelectionViewModel tabSelection)
 {
     tabSelection = GetCounts(tabSelection);
     return(View(tabSelection));
 }