Beispiel #1
0
        public MetricViewModel GetMetricByID(Guid id)
        {
            try
            {
                var metric = _repository.GetMetricByID(id);

                if (metric != null)
                {
                    return(metric);
                }
                else
                {
                    return(null);
                }
            }
            catch (Exception)
            {
                return(null);
            }
        }
Beispiel #2
0
        public MetricViewModel GetMetricByID([FromQuery] Guid id)
        {
            var metric = _repository.GetMetricByID(id);

            return(metric);
        }