public DTOModelA DeleteGet(DTOModelA dtoModelA) { _deleteStep1 = new DeleteStep1A(); _deleteStep2 = new DeleteStep2A(); _deleteStep1.SetNextStep(_deleteStep2); dtoModelA = _deleteStep1.Execute(dtoModelA); return(dtoModelA); }
public bool CreatePost(DTOModelB dtoModelB) { _createStep1 = new CreateStep1B(); _createStep2 = new CreateStep2B(); _createStep3 = new CreateStep3B(); // chain definition _createStep1.SetNextStep(_createStep2); _createStep2.SetNextStep(_createStep3); _createStep1.Execute(dtoModelB); if (dtoModelB.Id != 0) { return(true); } return(false); }
public bool CreatePost(DTOModelA dtoModelA) { _createStep1 = new CreateStep1A(); _createStep2 = new CreateStep2A(); _createStep3 = new CreateStep3A();; // chain definition _createStep1.SetNextStep(_createStep2); _createStep2.SetNextStep(_createStep3); CaseDTOModelA caseDTOModelsA = new CaseDTOModelA(dtoModelA); caseDTOModelsA.consolidate(); dtoModelA = _createStep1.Execute(dtoModelA); if (dtoModelA.Id != 0) { return(true); } return(false); }
public void SetNextStep(IABaseStep <T> nextStep) { NextStep = nextStep; }