public ActionResult StudyDetails(int StudyID)
 {
     try
     {
         if (pagemanager.IsPageValid((int)Session["FOGroupId"], 15))
         {
             return(View("PageError"));
         }
         else
         {
             NavManager.Logger((int)Session["FOUserId"], 15, DateTime.Now, Request.Url.AbsoluteUri);
             Study study = studymanager.GetStudyByStudyId(StudyID);
             ViewBag.Activities = study.GetActivities();
             ViewBag.Study      = study;
             return(View(study));
         }
     }
     catch (Exception e)
     {
         ViewBag.message = e.Message;
         return(View("Error"));
     }
 }