Serializing an object with restsharp and passing it to WebApi not serializing list
问题 I have a a view model that looks like. public class StoreItemViewModel { public Guid ItemId { get; set; } public List<Guid> StoreIds { get; set; } [Required] public string Description { get; set; } //[Required] //[DataMember(IsRequired = true)] public int ItemTypeId { get; set; } } I have a small helper that using is using RestSharp. public static IRestResponse Create<T>(object objectToUpdate, string apiEndPoint) where T : new() { var client = new RestClient(CreateBaseUrl(null)) {