- Controller -
[WebMethod]
public ActionResult GetSellers()
{
List<Seller> sellers = db.Sellers.ToList();
return Json(sellers, JsonRequestBehavior.AllowGet);
}
- View -
@Html.DropDownList("SellerId", null, "-- Select --...
asked by
31.05.2015 / 17:38