public async Task <ActionResult> Delete(int id) { var success = await _postBll.DeletePostAsync(id); var userId = this.User.FindFirst(ClaimTypes.NameIdentifier).Value; var model = _postBll.GetUserPosts(userId); return(View("MyPosts", model)); }