Skip to content

Commit 3cf4bf5

Browse files
committed
Update README
1 parent b0d3a98 commit 3cf4bf5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ JSON.
100100
return await Index();
101101
}
102102

103-
return Inertia.Render("Posts", data);
103+
_context.Add(post);
104+
await _context.SaveChangesAsync();
105+
106+
return RedirectToAction("Index");
104107
}
105108
```
106109

0 commit comments

Comments
 (0)