Esempio n. 1
0
 public LatestProfile( IListenedShow latestShow, IShow show, UserProfile profile, ISubscription subscription )
 {
     LatestListenedShow = latestShow;
     LatestShow = show;
     Profile = profile;
     Subscription = subscription;
 }
Esempio n. 2
0
 public LatestProfile(IListenedShow latestShow, IShow show, UserProfile profile, ISubscription subscription)
 {
     LatestListenedShow = latestShow;
     LatestShow         = show;
     Profile            = profile;
     Subscription       = subscription;
 }
Esempio n. 3
0
        public void Delete(IListenedShow show)
        {
            Checks.Argument.IsNotNull(show, "show");

            using (IUnitOfWork u = UnitOfWork.Begin())
            {
                _repo.Remove(show);
                u.Commit();
            }
        }
        public void Delete(IListenedShow show)
        {
            Checks.Argument.IsNotNull(show, "show");

            using (IUnitOfWork u = UnitOfWork.Begin())
            {
                _repo.Remove(show);
                u.Commit();
            }
        }
Esempio n. 5
0
 public void SaveCommit(IListenedShow show, out bool success)
 {
     using (IUnitOfWork u = UnitOfWork.Begin())
     {
         Save(show, out success);
         if (success)
         {
             u.Commit();
         }
     }
 }
Esempio n. 6
0
        public void Save(IListenedShow show, out bool success)
        {
            Checks.Argument.IsNotNull(show, "show");

            success = false;

            if (null == _repo.FindByShowId(show.Id))
            {
                try
                {
                    _repo.Add(show);
                    success = true;
                }
                catch (Exception ex)
                {
                    success = false;
                }
            }
        }
 public void SaveCommit(IListenedShow show, out bool success)
 {
     using (IUnitOfWork u = UnitOfWork.Begin())
     {
         Save(show, out success);
         if (success)
             u.Commit();
     }
 }
        public void Save(IListenedShow show, out bool success)
        {
            Checks.Argument.IsNotNull(show, "show");

            success = false;

            if (null == _repo.FindByShowId(show.Id))
            {
                try
                {
                    _repo.Add(show);
                    success = true;
                }
                catch (Exception ex)
                {
                    success = false;
                }
            }
        }