Exemple #1
0
 public ActionResult Details(int id)
 {
     try
     {
         ViewChartSet v = _chartSetRepository.GetChartSet(id, GetUserId());
         return(View(v));
     }
     catch (Exception e)
     {
         ExceptionMessageToViewBag(e);
         return(View("Error"));
     }
 }
        public ViewResult Index(Int64 id /*chart set id.*/)
        {
            try
            {
                Guid         userId = GetUserId();
                ViewChartSet v      = _chartSetRepository.GetChartSet(id, userId);

                ViewBag.ChartSetName = v.Name;
                ViewBag.ChartSetID   = v.ID;
                return(View(_chartSetsChartsRepository.GetChartSetChartsList(id, userId)));
            }
            catch (Exception e)
            {
                ExceptionMessageToViewBag(e);
                return(View("Error"));
            }
        }