Ejemplo n.º 1
0
        public GroupsOfStudentsDTO Update(GroupsOfStudentsDTO groupOfStudents)
        {
            var group = Mapper.Map <GroupsOfStudentsDTO, GroupOfStudents>(groupOfStudents);

            return(Mapper.Map <GroupOfStudents, GroupsOfStudentsDTO>((GroupOfStudents) new GroupOfStudents().Update(group)));
        }
Ejemplo n.º 2
0
 public bool Delete(GroupsOfStudentsDTO groupOfStudents)
 {
     return(new GroupOfStudents().Delete(Mapper.Map <GroupsOfStudentsDTO, GroupOfStudents>(groupOfStudents)));
 }
Ejemplo n.º 3
0
        public GroupsOfStudentsDTO Register(GroupsOfStudentsDTO group)
        {
            var newGroup = new GroupOfStudents().Register(Mapper.Map <GroupsOfStudentsDTO, GroupOfStudents>(group));

            return(Mapper.Map <GroupOfStudents, GroupsOfStudentsDTO>((GroupOfStudents)newGroup));
        }