예제 #1
0
        public async Task <IActionResult> Index(int?id)
        {
            var actionResult = await postBusinessManager.GetPostViewModel(id, User);

            if (actionResult.Result is null)
            {
                return(View(actionResult.Value));
            }

            return(actionResult.Result);
        }
예제 #2
0
        public async Task <IActionResult> Index(int?id)
        {
            var actionResult = await postBusinessManager.GetPostViewModel(id, User);

            if (actionResult.Result is null)
            {
                return(View(actionResult.Value));
            }
            logger.LogInformation("PostController: GetPostView model OK.");
            return(actionResult.Result);
        }