Exemplo n.º 1
0
 public TechnologyEntity ConvertTechnologyModelToEntity(TechnologyModel newTechnologyModel)
 {
     newTechnologyEntity.TechnologyId   = newTechnologyModel.TechnologyId;
     newTechnologyEntity.TechnologyName = newTechnologyModel.TechnologyName;
     newTechnologyEntity.Description    = newTechnologyModel.Description;
     return(newTechnologyEntity);
 }
Exemplo n.º 2
0
        public List <TechnologyModel> ConvertTechnologyEntityToModel(List <TechnologyEntity> technologies)
        {
            List <TechnologyModel> technologyModels = new List <TechnologyModel>();

            foreach (var item in technologies)
            {
                TechnologyModel techModel = new TechnologyModel();
                techModel.TechnologyId   = item.TechnologyId;
                techModel.TechnologyName = item.TechnologyName;
                techModel.Description    = item.Description;
                technologyModels.Add(techModel);
            }
            return(technologyModels);
        }