// // GET: /BusChargesMaster/Details/5 public ActionResult Details(int id) { if (id != 0) { objBDC = new BusChargesMasterBusiness(); var rs = objBDC.GetById(id); return(View(rs)); } else { return(View()); } }
// // GET: /BusChargesMaster/Edit/5 public ActionResult Edit(int id) { objBDCCommon = new CommonMasterDataBusiness(); SessionMasterModel objModel = new SessionMasterModel(); var SessionType = objBDCCommon.GetSessionMaster(); objModel.SessionList = new SelectList(SessionType, "SessionId", "Title"); ViewBag.SessionInfo = objModel.SessionList; objBDC = new BusChargesMasterBusiness(); var rs = objBDC.GetById(id); return(View(rs)); }
// // GET: /BusChargesMaster/Create public ActionResult Create(int id = 0) { BusChargesMasterCustomModel objModel = new BusChargesMasterCustomModel(); objBDCCommon = new CommonMasterDataBusiness(); SessionMasterModel objSessionModel = new SessionMasterModel(); var SessionType = objBDCCommon.GetSessionMaster(); objSessionModel.SessionList = new SelectList(SessionType, "SessionId", "Title"); ViewBag.SessionInfo = objSessionModel.SessionList; if (id > 0) { objBDC = new BusChargesMasterBusiness(); objModel = objBDC.GetById(id); } return(View(objModel)); }