public WorkPackageStep BizAction(WorkPackageStepDto inputData) { var workPackage = _workPackageDbAcces.GetRoadMap(inputData.WorkPackageId); if (workPackage == null) { AddError("WorkPackage Not Valid...", "workPackage"); return(null); } var desStatus = WorkPackageStep.CreateWorkPackageStep(inputData.Title, inputData.Description, inputData.WorkPackageId); CombineErrors(desStatus); if (!HasErrors) { _dbAccess.Add(desStatus.Result); } return(HasErrors ? null : desStatus.Result); }
public void Add(WorkPackageStep workPackageStep) { _context.WorkPackageStep.Add(workPackageStep); }
public void Delete(WorkPackageStep workPackageStep) { _context.WorkPackageStep.Remove(workPackageStep); }