Most effective method of protecting an entity ID when posting back from a view
问题 EDIT - Just a quick edit, to start this off with a clear question! What I'm essentially asking is, what is the most effective way of protecting my entity identifiers when posting back from a view? I've been thinking about ways to protect the ID on a POST when editing a view model. Let's take an example entity public class Post { public int Id { get; set; } public string Title { get; set; } public string Content { get; set; } } And its corresponding view model: public class PostViewModel {