public LatestProfile( IListenedShow latestShow, IShow show, UserProfile profile, ISubscription subscription ) { LatestListenedShow = latestShow; LatestShow = show; Profile = profile; Subscription = subscription; }
public LatestProfile(IListenedShow latestShow, IShow show, UserProfile profile, ISubscription subscription) { LatestListenedShow = latestShow; LatestShow = show; Profile = profile; Subscription = subscription; }
public void Delete(IListenedShow show) { Checks.Argument.IsNotNull(show, "show"); using (IUnitOfWork u = UnitOfWork.Begin()) { _repo.Remove(show); u.Commit(); } }
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; } } }
public void SaveCommit(IListenedShow show, out bool success) { using (IUnitOfWork u = UnitOfWork.Begin()) { Save(show, out success); if (success) u.Commit(); } }