Exemple #1
0
        public MaterialSoportePlantarTest()
        {
            _materialSoportePlantarDto = new MaterialSoportePlantarDto()
            {
                idMaterialSoportePlantar = Guid.NewGuid()
            };

            _materialSoportePlantarModel = new MaterialSoportePlantarModel()
            {
                idMaterialSoportePlantar = Guid.NewGuid()
            };
        }
 public static MaterialSoportePlantar ModelToEntity(this MaterialSoportePlantarModel materialSoportePlantar, bool mapTratamiento = false)
 {
     return(new MaterialSoportePlantar
     {
         idMaterialSoportePlantar = materialSoportePlantar.idMaterialSoportePlantar,
         id_tratamiento = materialSoportePlantar.id_tratamiento,
         TAD = materialSoportePlantar.TAD,
         EVA = materialSoportePlantar.EVA,
         componentes = materialSoportePlantar.componentes,
         otros = materialSoportePlantar.otros,
         propileno = materialSoportePlantar.propileno,
         resinas = materialSoportePlantar.resinas,
         tratamiento = mapTratamiento == true?materialSoportePlantar.tratamiento?.ModelToEntity() : null
     });
 }
Exemple #3
0
 public static MaterialSoportePlantarDto ModelToDto(this MaterialSoportePlantarModel materialSoportePlantar)
 {
     return(new MaterialSoportePlantarDto
     {
         idMaterialSoportePlantar = materialSoportePlantar.idMaterialSoportePlantar,
         id_tratamiento = materialSoportePlantar.id_tratamiento,
         TAD = materialSoportePlantar.TAD,
         EVA = materialSoportePlantar.EVA,
         componentes = materialSoportePlantar.componentes,
         otros = materialSoportePlantar.otros,
         propileno = materialSoportePlantar.propileno,
         resinas = materialSoportePlantar.resinas,
         tratamiento = materialSoportePlantar.tratamiento?.ModelToDto()
     });
 }
 public void Update(MaterialSoportePlantarModel model)
 {
     Update(model.ModelToEntity());
 }
 public void Insert(MaterialSoportePlantarModel model)
 {
     Insert(model.ModelToEntity());
 }
 public void Delete(MaterialSoportePlantarModel model)
 {
     Delete(model.ModelToEntity());
 }