public ActionResult Edit([Bind(Include = "OrderID,OrderType,Description,Priority,State,Posology,Date,PatientID")] OrderEntity orderEntity) { if (ModelState.IsValid) { db.Change(orderEntity);; return(RedirectToAction("Index")); } ViewBag.PatientID = new SelectList(pf.ToList(), "PatientID", "Name", orderEntity.PatientID); return(View(orderEntity)); }
public IHttpActionResult PutOrderEntity(OrderEntity orderEntity) { db.Change(orderEntity); return(StatusCode(HttpStatusCode.NoContent)); }