// GET: Complaint/Create public ActionResult Create() { ViewBag.ComplaintTypes = new SelectList(_dbComplaintTypeRepository.GetData(), "Id", "Name"); ViewBag.ReportingParties = new SelectList(_dbReportingPartyRepository.GetData(), "Id", "Name"); return(View()); }
public IQueryable <ComplaintType> GetData() { return(_dbRepository.GetData().AsQueryable()); }