public IHttpActionResult Put(Transaction transaction) { int status = TransactionLogic.Put(transaction); if (status == 0) { return(BadRequest("0")); } else { return(Ok(status)); } }