Ejemplo n.º 1
0
 public void SetEntityDTO(int id)
 {
     DataModelEntity = new DataModelDTO
     {
         Id   = id,
         Name = Name
     };
 }
Ejemplo n.º 2
0
 private void SetDTO()
 {
     DataModelEntity = new DataModelDTO
     {
         Id   = null,
         Name = Name
     };
 }
Ejemplo n.º 3
0
 public DataModel Convert_DTOToDataModel(DataModelDTO dto)
 {
     return(new DataModel()
     {
         Id = dto.Id,
         Name = dto.Name
     });
 }
Ejemplo n.º 4
0
 public DataModel()
 {
     mDataModel      = new DataModelDAO();
     DataModelEntity = new DataModelDTO();
     dataModelItems  = new List <DataModelItemDTO>();
 }
Ejemplo n.º 5
0
        public Tuple <int?, string> Find(int id)
        {
            DataModelEntity = mDataModel.Select(id);

            return(new Tuple <int?, string>(DataModelEntity.Id, DataModelEntity.Name));
        }