Beispiel #1
0
        public ActionResult GetReport(int id)
        {
            string userId = User.Identity.GetUserId();

            bool reportSaved;

            if (userId != null)
            {
                reportSaved = _summaryService.CheckIfReportSaved(userId, id);
                if (reportSaved)
                {
                    ViewBag.Saved = "true";
                }
                else
                {
                    ViewBag.Saved = "false";
                }
            }
            else
            {
                ViewBag.Saved = "true";
            }


            StatSummaryVM ss = _summaryService.GetSummaryById(id);

            return(View("Report", ss));
        }