How to write an Edit Action
问题 I am trying to come up with an edit action. See below for what i have so far. ViewModel: using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; using System.Web.Mvc; namespace GlobalUnitedSC.WebUI.Models { public sealed class CreateMensPlayerViewModel { //Player profile starts here [HiddenInput(DisplayValue=false)] public int MensTeamId { get; set; } [HiddenInput(DisplayValue = false)] public int PlayerId { get; set; }