Is it possible to name the class/ViewModel for a WebAPI response object using System.ComponentModel.DataAnnotations or is there an alternative;
//[DataMember(Name="CarDepot")] -- this doesn't work
//[Display(Name = "CarDepot")] -- this doesn't work
public partial class CarDepotVM
{
[Display(Name = "CarDepotVM")]
[DataMember(Order = 0)]
[Required]
public Car[] Cars { get; set; }
}
The library which contains the following code is PCL complaint, therefore I cannot use any external libraries which aren't compatible.