示例#1
0
        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));
        }