コード例 #1
0
        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);
        }
コード例 #2
0
        public ActionResult Index(int JournalId)
        {
            JournalIndex model = _indexService.Get(JournalId, User.Identity.GetUserId());

            return(View("Index", model));
        }