public void Save(ISet set, out bool success) { Checks.Argument.IsNotNull(set, "set"); success = false; if (null == _repo.FindBySetId(set.SetId)) { try { _repo.Add(set); success = true; } catch (Exception ex) { success = false; } } }
public Set Add(Set newSet) { return(_setRepository.Add(newSet)); }