public ActionResult Edit(long id) { ViewBag.ReportTypes = new SelectList(WMS_ReportModel.GetReportType(), "Type", "Name"); ViewBag.DataSourceTypes = new SelectList(WMS_ReportModel.GetDataSourceType(), "Type", "Name"); WMS_ReportModel entity = m_BLL.GetById(id); return(View(entity)); }
public ActionResult Create() { ViewBag.ReportTypes = new SelectList(WMS_ReportModel.GetReportType(), "Type", "Name"); ViewBag.DataSourceTypes = new SelectList(WMS_ReportModel.GetDataSourceType(), "Type", "Name"); return(View()); }