function GetReport() { var efirm = document.getElementById("Firmalar"); var FirmValue = efirm.options[efirm.selectedIndex].value; var gonderilendegiskenler = { FirmValue: FirmValue } $.ajax({ url: '/AnaMenu/ServisRaporT', type: 'post', data: gonderilendegiskenler, success: function () { window.location.href = '/AnaMenu/ServisRaporT'; } }) }
controller
public ActionResult ServisRaporT(string FirmValue) { var user = (from u in db.Servis where u.ServisFirma == FirmValue select u).ToList(); return View(user); }