Hi, everyone, can someone help me to post the class from windows phone to webservices, using entity6, this is my server code [ResponseType(typeof(wizre))] public async Task<IHttpActionResult> Postwizre(string o) { wizre reok = JsonConvert.DeserializeObject<wizre>(o); if (!ModelState.IsValid) { return BadRequest(ModelState); } db.wizres.Add(reok); try { await db.SaveChangesAsync(); } catch (DbUpdateException) { if (wizreExists(reok.devid)) { return Conflict(); } else { throw; } } return CreatedAtRoute("DefaultApi", new { id = reok.devid }, reok); } </pre> my class model is: class wizre { public string devid { get; set; } public string com { get; set; } public byte[] im1 { get; set; } public byte[] im2 { get; set; } public byte[] im3 { get; set; } }</pre> Thanks
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)