C#
asp.net 기초
iIxmont
2019. 1. 31. 14:28
// GET: Movies/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
{
return NotFound();
}
var movie = await _context.Movie
.FirstOrDefaultAsync(m => m.Id == id);
if (movie == null)
{
return NotFound();
}
return View(movie); //View() = 메소드와 같은 이름으로 뷰를 리턴한다.
}
서버에서 뷰로 값을 보내는 방법