public class FileUploadResult { public String FileName { get; set; } public String Key { get; set; } public int PercentComplete { get; set; } public HttpPostedFile Content { get; set; } public string Type { get; set; } }and in my JavaScript file I attempt to save file as the Content property. So far so good.
public class EditMessageViewModel { public short FormType { get; set; } public int MessageId { get; set; } // MessageID (Primary key) //public byte ReciptType { get; set; } // ReciptType. Type of recipient. 1=Guest. //public decimal ReciptId { get; set; } // ReciptID. ID of the recipient. I.e. if recipient type is a guest, then guest_no. public string Body { get; set; } // Body // public System.DateTime DateTime { get; set; } // date_time // public System.Nullable<System.DateTime> Delivered { get; set; } // delivered public System.DateTime Expires { get; set; } // expires public string MsgFrom { get; set; } public string Subject { get; set; } public List<FileUploadResult> Attachments { get; set; } public List<GuestsList> Recipients { get; set; } }However, when I try to post I'm getting the 'Bad Request' right away, so apparently I can not post such model back.