Ejemplo n.º 1
0
        public DepartmentDTO toDTO(VMDepartmentSave save_dto)
        {
            DepartmentDTO dto = new DepartmentDTO();

            dto.Name = save_dto.Name;
            return(dto);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Facade           tf      = new Facade();
            VMDepartmentSave saveDTO = new VMDepartmentSave();

            saveDTO.Name = "Test" + DateTime.Now.Ticks;
            tf.Save(saveDTO);

            IEnumerable <VMDepartmentList> allActiveDepts = tf.GetAllActiveDepartments();
            int x = allActiveDepts.Count();
        }
Ejemplo n.º 3
0
 public void Save(VMDepartmentSave dto)
 {
     testService.Save(dto);
 }
Ejemplo n.º 4
0
        public void Save(VMDepartmentSave dto)
        {
            DepartmentDTO testdto = viewTransformer.toDTO(dto);

            dao.Save(testdto);
        }