public IActionResult EditEpisode(int id) { var animeEpisode = _animeRepository.GetEpisode(id); if (animeEpisode == null) { return(View("404Error")); } var strings = animeEpisode.Links.Split(","); var model = new EpisodeEditViewModel() { Id = animeEpisode.Id, Anime = _animeRepository.GetAnime(animeEpisode.AnimeId), Title = animeEpisode.Title, Alternative1 = strings[0], Alternative2 = strings[1], Alternative3 = strings[2], Alternative4 = strings[3], Alternative5 = strings[4], }; return(View(model)); }