Beispiel #1
0
        public static CBOViewModel MapToViewModel(CBO cbo)
        {
            CBOViewModel cboViewModel = new CBOViewModel()
            {
                IdCBO      = cbo.IdCBO,
                Descrricao = cbo.Descrricao,
                Codigo     = cbo.Codigo,
                Tipo       = cbo.Tipo
            };

            return(cboViewModel);
        }
Beispiel #2
0
        public static CBO MapToModel(CBOViewModel cboViewModel)
        {
            CBO cbo = new CBO()
            {
                IdCBO      = cboViewModel.IdCBO,
                Descrricao = cboViewModel.Descrricao,
                Codigo     = cboViewModel.Codigo,
                Tipo       = cboViewModel.Tipo
            };

            return(cbo);
        }