public IHttpActionResult Buy(TransactionDTO transaction) { if (ModelState.IsValid && _stockService.CheckExists(transaction.Ticker)) { return(Ok(_stockService.Buy(transaction.Ticker, transaction.Quantity, User.Identity.Name))); } return(BadRequest()); }