public async Task <IActionResult> ProcessFacebookPostForm(FacebookPost facebookPost) { await _facebookPostRepository.AddAysnc(facebookPost); await _facebookPostRepository.SaveAsync(); return(RedirectToAction("LoadFacebookManagement", "Admin")); }
public async Task <IActionResult> RemovePost(int id) { var post = await _facebookPostRepository.GetAsync(id); await _facebookPostRepository.RemoveAysnc(post); await _facebookPostRepository.SaveAsync(); return(await LoadFacebookManagement()); }