public async Task <IActionResult> CreateCollection() { var ownerId = User.IsInRole("admin") ? sessionHelper.GetRemeberedUserId() : sessionHelper.GetCurrentUserId(); if (ownerId == 0) { return(RedirectToAction(nameof(Home.Index), nameof(Home))); } var model = new CreateCollectionVM(); model.OwnerId = ownerId; return(View(model)); }