public async Task <IActionResult> Create(TripViewModel model) { if (ModelState.IsValid) { UserEntity userEntity = await _dataContext.Users.FindAsync(model.UserId); TripEntity tripEntity = await _converterHelper.ToAddTripEntity(model); _dataContext.Add(tripEntity); await _dataContext.SaveChangesAsync(); return(RedirectToAction($"{nameof(UserTripDetail)}/{model.UserId}")); } return(View(model)); }