Exemplo n.º 1
0
        public static ChartMetricDTO ChartMetricDTO_Convert_Table_To_DTO(tblChart_Metric tbl_chart_metric)
        {
            ChartMetricDTO chart_metric_dto = new ChartMetricDTO();

            chart_metric_dto.Id               = tbl_chart_metric.Id;
            chart_metric_dto.Metric_Id        = tbl_chart_metric.Metric_Id;
            chart_metric_dto.Pie_Chart_Id     = tbl_chart_metric.Pie_Chart_Id;
            chart_metric_dto.Stacked_Chart_Id = tbl_chart_metric.Stacked_Chart_Id;
            chart_metric_dto.Line_Chart_Id    = tbl_chart_metric.Line_Chart_Id;
            return(chart_metric_dto);
        }
Exemplo n.º 2
0
        public static tblChart_Metric ChartMetricDTO_Convert_DTO_To_Table(ChartMetricDTO chart_metric_dto)
        {
            tblChart_Metric tbl_chart_metric = new tblChart_Metric();

            tbl_chart_metric.Id               = chart_metric_dto.Id;
            tbl_chart_metric.Metric_Id        = chart_metric_dto.Metric_Id;
            tbl_chart_metric.Pie_Chart_Id     = chart_metric_dto.Pie_Chart_Id;
            tbl_chart_metric.Stacked_Chart_Id = chart_metric_dto.Stacked_Chart_Id;
            tbl_chart_metric.Line_Chart_Id    = chart_metric_dto.Line_Chart_Id;

            return(tbl_chart_metric);
        }