public ActionResult UpdateComment (CommentModel C)
{
Return the Content (new BLL.Com ment (.) UpdateComment (C));
}
The model parameters CommentModel for
public class CommentModel: PageModel
{
Public int CommentID {get; set; }
Public int ItemID {get; set; }
Public int ItemType {get; set; }
Public int UserID {get; set; }
Public string Contents {get; set; }
Public string CreateDate {get; set; }
}
CodePudding user response:
This you can consult the front end to, for example if the front not value, let he request send a - 100 or other meaningless value to you,CodePudding user response:
No assignment will take the default values