public ActionResult HostTransaction(string id, TransactionModal modal) { if (Session["Identity"] == null) { return RedirectToAction("login"); } getTaxiInformationByPlatenumberResult tx = context.getTaxiInformationByPlatenumber(id).First(); context.setTaxiOwnerEmpolyeeId(tx.plate_number, modal.buyer_id); return RedirectToAction("HostList"); }
public ActionResult HostTransaction(string id) { if (Session["Identity"] == null) { return RedirectToAction("login"); } getTaxiInformationByPlatenumberResult l = context.getTaxiInformationByPlatenumber(id).First(); TransactionModal s = new TransactionModal() { owner_id = (int)l.host_empolyee_id, owner_name = l.host_name, car_id = id, car_name = l.taxi_brand, buyer_list = new SelectList(context.getAllHost(), "empolyee_id", "name") }; ViewData.Model = s; return View(); }