Ejemplo n.º 1
0
        public ActionResult Create()
        {
            ViewData["SelectedListForTypeOfOffer"] = new SelectedListHelpers().GetSelectedList(_iTypeOfOffer.Get());
            ViewData["SelectedListForProblem"]     = new SelectedListHelpers().GetSelectedList(_iProblem.Get());
            //ViewData["SelectedListForStatus"] = new SelectedListHelpers().GetSelectedList(_iStatus.Get());
            ViewData["SelectedListForDirection"] = new SelectedListHelpers().GetSelectedList(_iDirection.Get());

            return(View());
        }
Ejemplo n.º 2
0
 public ActionResult Index(int?page)
 {
     return(View(db.Get().ToPagedList(page ?? 1, 10)));
 }