Example #1
0
        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;
                }
            }
        }
Example #2
0
 public Set Add(Set newSet)
 {
     return(_setRepository.Add(newSet));
 }