public RedirectResult DirectToCheckout(int id) { var usernameCookie = Request.Cookies["user"]["user_accountname"]; var result = _detailService.AddFavoriteAndDirectToCheckout(id, usernameCookie); return(new RedirectResult($"/Checkout?id={result.MessageInfo}")); }