public async Task <IActionResult> Create(EventCreationViewModel frmEvent) { //if (ModelState.IsValid) { frmEvent.Event.CatalogTypeID = frmEvent.TypesFilterApplied ?? 0; frmEvent.Event.CatalogCategoryID = frmEvent.CategoryFilterApplied ?? 0; //frmEvent.Event.CatalogCityID = frmEvent.CityFilterApplied ?? 0; var eventId = await _ecatalogSvc.CreateEvent(frmEvent.Event); frmEvent.Event.ID = eventId; var vm = new EventCreationViewModel() { Event = frmEvent.Event, TypesFilterApplied = frmEvent.TypesFilterApplied, Types = await _ecatalogSvc.GetTypesAsync() }; // var eventType = frmEvent.EventTypes.GetType(); //return View(vm); // return RedirectToAction("EventSaved", new { id = eventId, userName = "******" }); return(RedirectToAction("EventSaved", frmEvent.Event)); } // return View(frmEvent); }