public static RoleDTO MapToDTO(Role model ) { RoleDTO dto = new RoleDTO(); dto.RoleId = model.RoleId; dto.RoleName = model.RoleName; return dto; }
public static Role MapFromDTO(RoleDTO dto) { Role Role = new Role(); Role.RoleId = dto.RoleId; Role.RoleName = dto.RoleName; return Role; }
public Role SaveOrUpdate(Role Role) { HibernateTemplate.SaveOrUpdate(Role); return Role; }
public void Delete(Role Role) { HibernateTemplate.Delete(Role); }