public ActionResult CreatePointAccount(PointAccount pointAccount) { System.Console.WriteLine(pointAccount.ownerId); if (_PointService.CreateAccount(pointAccount.ownerId) == true) { return(Ok()); } else { return(StatusCode(500, "Account already exists")); } }