Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modifying binding in ContactOwnersViewModel

  • Loading branch information...
commit 683d7c4f2f7bfa19780610797d5a5a86ed81b5b7 1 parent f408284
@pranavkm pranavkm authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 Website/ViewModels/ContactOwnersViewModel.cs
View
4 Website/ViewModels/ContactOwnersViewModel.cs
@@ -1,12 +1,16 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
+using System.Web.Mvc;
namespace NuGetGallery
{
+ [Bind(Include="Message")]
public class ContactOwnersViewModel
{
public string PackageId { get; set; }
+
public IEnumerable<User> Owners { get; set; }
+
[Required(ErrorMessage = "Please enter a message.")]
[StringLength(4000)]
public string Message { get; set; }
Please sign in to comment.
Something went wrong with that request. Please try again.