常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> Create([Bind("Id,ProfileId,PublishDateTime,PhotoUrl,Message")] App.Domain.Post post) { if (ModelState.IsValid) { var token = HttpContext.Session.GetString("Token"); await appService.AddPostAsync(token, post); return(RedirectToAction(nameof(Index))); } return(View(post)); }