MY view model is
public class FilterVendorJobsiteStateWiseViewModel
{
public long? VendorId { get; set; }
public string CompanyName { get; set; }
public string VendorState { get; set; }
public string JobsiteState { get; set; }
}
My Action as json result is
public JsonResult FilterVendorJobsiteStateWise(long id)
{
var getState = (from f in db.FilterVendorJobsiteStateWise(id)
select new FilterVendorJobsiteStateWiseViewModel()
{
VendorId = f.VendorId,
CompanyName = f.CompanyName
}).ToList();
return Json(getState, JsonRequestBehavior.AllowGet);
}
Now what I want is to filter my dropdown on the base of selected state.
This is ...
Go to the complete details ...