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)); }
public ActionResult Create() { TripRequestViewModel model = new TripRequestViewModel(areaService); return(View(model)); }