public static GEUFViewModel DomainToViewModel(GEUF domain) { GEUFViewModel GEUFViewModel = new GEUFViewModel(); if (domain != null) { GEUFViewModel = new GEUFViewModel { CodigoUF = domain.CodigoUF, Descricao = domain.Descricao, Sigla = domain.Sigla }; } return(GEUFViewModel); }
public static GEUF ViewModelToDomain(GEUFViewModel viewModel) { GEUF GEUF = new GEUF(); if (viewModel != null) { GEUF = new GEUF { CodigoUF = viewModel.CodigoUF, Descricao = viewModel.Descricao, Sigla = viewModel.Sigla }; } return(GEUF); }