public IActionResult Create(CreateGroceryListVM cgvm) { if (ModelState.IsValid) { var user = _userManager.ReadAsync(_manager.GetUserId(HttpContext.User)); GroceryList gL = cgvm.CreateGroceryList(user.Result.Id, user.Result.Email); //create a new GroceryList passing the creators id into it _groceryLists.CreateGroceryList(gL); _groceryLists.GrantPermission(gL.Id, _manager.GetUserId(HttpContext.User)); return RedirectToAction("Index", "Home"); } return View(); }