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