Ejemplo n.º 1
0
        public DepartmentDTO ToDTO(TDepartment te)
        {
            DepartmentDTO tdto = new DepartmentDTO();

            tdto.Sid  = te.Sid;
            tdto.Name = te.Name;
            return(tdto);
        }
Ejemplo n.º 2
0
        public TDepartment ToEntity(DepartmentDTO dto)
        {
            TDepartment te = new TDepartment();

            te.Sid  = dto.Sid;
            te.Name = dto.Name;
            return(te);
        }
        public void Save(DepartmentDTO dto)
        {
            TDepartment te = transformer.ToEntity(dto);

            Console.Out.WriteLine("Save was called");
        }