Esempio n. 1
0
 public static RankingDto createRankingDTO(String RankingId, String RankingName)
 {
     RankingDto ran = new RankingDto();
     ran.RankingId = RankingId;
     ran.RankingName = RankingName;
     return ran;
 }
Esempio n. 2
0
 public static RankingDto createRankingDTO(Ranking obj)
 {
     RankingDto ran = new RankingDto();
     ran.RankingId = obj.RankingId;
     ran.RankingName = obj.RankingName;
     return ran;
 }
Esempio n. 3
0
 public Boolean deleteRanking(RankingDto dto)
 {
     Ranking obj = Ranking.createRanking(dto.RankingId, dto.RankingName);
     RankingManager mgr = new RankingManager();
     return mgr.deleteRanking(obj);
 }
Esempio n. 4
0
 public RankingDto selectRankingById(RankingDto dto)
 {
     RankingManager mgr = new RankingManager();
     Ranking obj = new Ranking();
     obj.RankingId = dto.RankingId;
     obj = mgr.selectRankingById(obj);
     if (obj != null)
     {
         return RankingDto.createRankingDTO(obj);
     }
     else
     {
         return null;
     }
 }