public POCreateHandler(GlobalSolusindoDb db, tblM_User user, POValidator pOValidator, POFactory pOFactory , POQuery pOQuery) : base(db, user) { this.POValidator = pOValidator; this.POFactory = pOFactory; this.POQuery = pOQuery; this.POEntryDataProvider = new POEntryDataProvider(db, user, pOQuery); }
public POImportExcelHandler(GlobalSolusindoDb db, tblM_User user, POValidator poValidator, POFactory poFactory, POQuery poQuery) : base(db, user) { this.poValidator = poValidator; this.poFactory = poFactory; this.poQuery = poQuery; this.poEntryDataProvider = new POEntryDataProvider(db, user, poQuery); }
public List <ModelValidationResult> Validate(List <PODTO> poList) { List <ModelValidationResult> validationResults = new List <ModelValidationResult>(); POValidator validator = new POValidator(); foreach (var po in poList) { var validationResult = validator.Validate(po); validationResults.Add(validationResult); } return(validationResults); }