public IActionResult OnPostCreate(string name) { string path = Path.Combine(_environment.WebRootPath, "albums", name); Directory.CreateDirectory(path); var album = new Album(path, _ac); _ac.Albums.Insert(0, album); _ac.Sort(); return(new RedirectResult($"~/album/{WebUtility.UrlEncode(name).Replace('+', ' ')}/")); }