示例#1
0
 public AbstractIndex PutJobIndex(AbstractIndex abstractIndex)
 {
     if (abstractIndex is JobIndexDTO)
     {
         return(jobIndexFacadeService.UpdateJobIndex((JobIndexDTO)abstractIndex));
     }
     else
     {
         return(jobIndexFacadeService.UpdateJobIndexCategory((JobIndexCategoryDTO)abstractIndex));
     }
 }
示例#2
0
 public AbstractIndex PutUnitIndex(AbstractIndex abstractIndex)
 {
     if (abstractIndex is UnitIndexDTO)
     {
         return(unitIndexFacadeService.UpdateUnitIndex((UnitIndexDTO)abstractIndex));
     }
     else
     {
         return(unitIndexFacadeService.UpdateUnitIndexCategory((UnitIndexCategoryDTO)abstractIndex));
     }
 }