grid.Column(header: "Wards", format: @<text>@Html.DropDownList(@Url.Action("getDoctorsWards", "Doctor", new { id = 1 }), "Ward_id")</text>)
public ViewResult getDoctorsWards(int id) { var myModel = db.Wards.Where(a => a.Doctor.Doctor_id == id).ToList(); return View(myModel); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)