Пример #1
0
        public async Task <ForumModel> GetForumById(Guid?guid, string uniqueName, bool isForumAdmin)
        {
            var forum = await _forumDal.GetForumById(guid, uniqueName);

            return((forum == null || isForumAdmin || forum.VisibleFlag) ? forum : null);
        }
        public async Task <IActionResult> GetForumByGuid(Guid guid)
        {
            var forum = await _forumDal.GetForumById(guid, null);

            return(forum != null ? (IActionResult)this.Ok(forum) : this.NotFound());
        }