public ActionResult <string> CheckoutOrder([FromBody] Token token) { System.Console.WriteLine("hellow??asdfasdfasfdasf"); Customer customerOut; bool sdfs = _authenticator.InnerValidate(token, out customerOut); if (sdfs == true) { if (_orderLogic.CheckoutCustomer(customerOut.CustomerId)) { return(JsonConvert.SerializeObject(customerOut, new Newtonsoft.Json.JsonSerializerSettings() { ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore })); } else { return(StatusCode(401)); } } return(StatusCode(401)); }