public OrderHistory UserLogin() { OrderHistory cart; if (_signInManager.IsSignedIn(User)) { var UserId = _userManager.GetUserId(User); return(cart = OrderHistory.GetCart(_context, HttpContext, UserId)); } else { return(null); } }