public static CalendarioLegendaViewModel MapToViewModel(CalendarioLegenda CalendarioLegenda)
        {
            CalendarioLegendaViewModel CalendarioLegendaViewModel = new CalendarioLegendaViewModel()
            {
                IdCalendario = CalendarioLegenda.IdCalendario,
                Descricao    = CalendarioLegenda.Descricao,
                Cor          = CalendarioLegenda.Cor
            };

            return(CalendarioLegendaViewModel);
        }
        public static CalendarioLegenda MapToModel(CalendarioLegendaViewModel CalendarioLegendaViewModel)
        {
            CalendarioLegenda CalendarioLegenda = new CalendarioLegenda()
            {
                IdCalendario = CalendarioLegendaViewModel.IdCalendario.GetValueOrDefault(0),
                Descricao    = CalendarioLegendaViewModel.Descricao,
                Cor          = CalendarioLegendaViewModel.Cor
            };

            return(CalendarioLegenda);
        }