コード例 #1
0
        public async Task <IActionResult> ProcessFacebookPostForm(FacebookPost facebookPost)
        {
            await _facebookPostRepository.AddAysnc(facebookPost);

            await _facebookPostRepository.SaveAsync();

            return(RedirectToAction("LoadFacebookManagement", "Admin"));
        }
コード例 #2
0
        public async Task <IActionResult> RemovePost(int id)
        {
            var post = await _facebookPostRepository.GetAsync(id);

            await _facebookPostRepository.RemoveAysnc(post);

            await _facebookPostRepository.SaveAsync();

            return(await LoadFacebookManagement());
        }