private void AddProjects() { foreach (Project PR in _presenter.GetProjects()) { if (_presenter.GetProjectfromCostSharing(PR.Id) == null) { CostSharingSetting CSS = new CostSharingSetting(); CSS.Project = _presenter.GetProject(PR.Id); _presenter.SaveOrUpdateCostSharing(CSS); } } }
public void DeleteCostSharingSetting(CostSharingSetting CostSharingSetting) { _controller.DeleteEntity(CostSharingSetting); }
public void SaveOrUpdateCostSharing(CostSharingSetting project) { _controller.SaveOrUpdateEntity(project); }