public static bool AreExpendituresValid(this ProjectUpdateBatch projectUpdateBatch) { if (MultiTenantHelpers.GetTenantAttributeFromCache().BudgetType == BudgetType.AnnualBudgetByCostType) { return(projectUpdateBatch.ValidateExpendituresByCostType().Count == 0); } return(projectUpdateBatch.ValidateExpenditures().Count == 0); }
public static List <string> ValidateExpendituresAndForceValidation(this ProjectUpdateBatch projectUpdateBatch) { if (MultiTenantHelpers.GetTenantAttributeFromCache().BudgetType == BudgetType.AnnualBudgetByCostType) { return(projectUpdateBatch.ValidateExpendituresByCostType()); } return(projectUpdateBatch.ValidateExpenditures()); }