Exemple #1
0
 public static IncomeDto createIncomeDTO(String IncomeId, String IncomeDescription)
 {
     IncomeDto inc = new IncomeDto();
     inc.IncomeId = IncomeId;
     inc.IncomeDescription = IncomeDescription;
     return inc;
 }
Exemple #2
0
 public static IncomeDto createIncomeDTO(Income obj)
 {
     IncomeDto inc = new IncomeDto();
     inc.IncomeId = obj.IncomeId;
     inc.IncomeDescription = obj.IncomeDescription;
     return inc;
 }
Exemple #3
0
 public Boolean deleteIncome(IncomeDto dto)
 {
     Income obj = Income.createIncome(dto.IncomeId, dto.IncomeDescription);
     IncomeManager mgr = new IncomeManager();
     return mgr.deleteIncome(obj);
 }
Exemple #4
0
 public IncomeDto selectIncomeById(IncomeDto dto)
 {
     IncomeManager mgr = new IncomeManager();
     Income obj = new Income();
     obj.IncomeId = dto.IncomeId;
     obj = mgr.selectIncomeById(obj);
     if (obj != null)
     {
         return IncomeDto.createIncomeDTO(obj);
     }
     else
     {
         return null;
     }
 }