Ejemplo n.º 1
0
        public void Save(IMyShow myShow, out bool success)
        {
            Checks.Argument.IsNotNull(myShow, "myShow");

            success = false;

            if (null == _repo.FindByMyShowId(myShow.MyShowId))
            {
                try
                {
                    _repo.Add(myShow);
                    success = true;
                }
                catch (Exception ex)
                {
                    success = false;
                }
            }
        }