Example #1
0
 public static RoleDTO MapToDTO(Role  model )
 {
     RoleDTO dto = new RoleDTO();
     dto.RoleId = model.RoleId;
     dto.RoleName = model.RoleName;
     return dto;
 }
Example #2
0
 public static Role MapFromDTO(RoleDTO dto)
 {
     Role Role = new Role();
     Role.RoleId = dto.RoleId;
     Role.RoleName = dto.RoleName;
     return Role;
 }
Example #3
0
 public Role SaveOrUpdate(Role Role)
 {
     HibernateTemplate.SaveOrUpdate(Role);
     return Role;
 }
Example #4
0
 public void Delete(Role Role)
 {
     HibernateTemplate.Delete(Role);
 }