Exemplo n.º 1
0
        public ActionResult Create([Bind(Exclude = "User, Status")] Trip trip)
        {
            //Get usere from session
            trip.User = new User()
            {
                Email = User.Identity.Name
            };

            TripRequestViewModel model = new TripRequestViewModel(ModelState.IsValid, trip, tripService, areaService, userService);

            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Create()
        {
            TripRequestViewModel model = new TripRequestViewModel(areaService);

            return(View(model));
        }