public ActionResult Reply(Answer answer)
        {
            var vm = new ListAnswerViewModel { Answers = new List<Answer>(), CurrentUserId = CurrentUser.UserInfo.Id };

            if (ModelState.IsValid)
            {
                answer.PostedById = CurrentUser.UserInfo.Id;

                // Call Repository to perform insert
                var feedback = _aRepo.InsertAnswer(answer);
                if (feedback.Success)
                {
                    // Add new category to cache
                    vm.Answers.Add(feedback.Data);

                    return View(vm);
                }
            }

            return View(vm);
        }
 public ActionResult DetailsMore(int id, int page = 1)
 {
     ListAnswerViewModel vm = null;
     var pageInfo = new PageInfo(AppConfigs.AnswersPageSize, page);
     var feedback = _aRepo.GetAllAnswers(id, pageInfo);
     if (feedback.Success)
     {
         vm = new ListAnswerViewModel
         {
             Answers = feedback.Answers,
             HasMore = feedback.Total > pageInfo.PageSize * pageInfo.PageNo,
             CurrentUserId = CurrentUser != null ? CurrentUser.UserInfo.Id : 0,
         };
         return View(vm);
     }
     SetMessage(feedback.Message, MessageType.Error);
     return View(vm);
 }