Esempio n. 1
0
        public ActionResult GetMetrics(int typeID)
        {
            var mng = new MetricsManager();
            var res = mng.GetMetrics(typeID).Select(x => new { x.id, x.title, x.subtitle });

            return(Json(new
            {
                result = true,
                items = res
            }));
        }
        public IActionResult GetMetrics([FromRoute] int id)
        {
            var metrics = _metricsManager.GetMetrics(id);

            return(Ok(metrics));
        }