public bool IsSubscribedToSub(Guid subId) { //todo: optimize return(_userContext.CurrentUser == null? _subDao.GetDefaultSubs().Any(x => x == subId) : _subDao.IsUserSubscribedToSub(_userContext.CurrentUser.Id, subId)); }
public bool IsSubscribedToSub(Guid subId) { //todo: optimize return(_userContext.CurrentUser == null? _subDao.GetDefaultSubs().Any(x => x == subId) : _subDao.IsUserSubscribedToSub(_userContext.CurrentUser.Id, subId)); }