public JournalIndex Get(int JournalId, string SessionUserId) { JournalIndex index = _indexRepository.Get(JournalId); index.BulletCollection.Bullets = _bulletRepository.GetByCollection(index.BulletCollection.BulletCollectionId); if (index.OwnerId.ToString().ToUpper() == SessionUserId.ToUpper()) { return(index); } return(null); }
public ActionResult Index(int JournalId) { JournalIndex model = _indexService.Get(JournalId, User.Identity.GetUserId()); return(View("Index", model)); }