@using EventHub.Options @using EventHub.Web @using EventHub.Web.Pages.Events.Components.CreateOrEditEventArea @using Microsoft.AspNetCore.Http @using Microsoft.Extensions.Options @model EventHub.Web.Pages.Events.Components.CreateOrEditEventArea.CreateOrEditEventAreaViewComponent.NewEventViewModel @inject IOptions UrlOptions @{ var organizations = new List(); var countries = new List(); var languages = new List(); var eventId = ViewData["EventId"] as Guid?; @if (ViewData["StepType"]!.ToString() == CreateOrEditEventAreaViewComponent.ProgressStepType.Event.ToString()) { organizations = ViewData["Organizations"] as List; if (organizations is null || !organizations.Any()) { throw new BadHttpRequestException("There is no organization"); } countries = ViewData["Countries"] as List; if (countries is null || !countries.Any()) { throw new BadHttpRequestException("There is no country"); } languages = ViewData["Languages"] as List; if (languages is null || !languages.Any()) { throw new BadHttpRequestException("There is no language"); } } } @if (Model is not null) {

@(eventId.HasValue ? "Edit" : "Create New") Event

Cover Image

@if (eventId.HasValue) {
} else {
}

For horizontal format 600x400 sized upload images.

} else { }