Пример #1
0
        // 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 <ReportingParty> GetData()
 {
     return(_dbRepository.GetData().AsQueryable());
 }