public static async Task <IHttpActionResult> Update(FutureTrade futureTrade)
        {
            try
            {
                await client.ReplaceDocumentAsync(UriFactory.CreateDocumentUri(DatabaseId, Collection1Id, futureTrade.Id), futureTrade);

                return(new OkResult(new HttpRequestMessage()));
            }
            catch (Exception)
            {
                return(new NotFoundResult(new HttpRequestMessage()));
            }
        }
        public static async Task <IHttpActionResult> Create(FutureTrade futureTrade)
        {
            try
            {
                await client.ReadDocumentAsync(UriFactory.CreateDocumentUri(DatabaseId, Collection1Id, futureTrade.Id));

                return(new BadRequestResult(new HttpRequestMessage()));
            }
            catch (DocumentClientException e)
            {
                if (e.StatusCode == HttpStatusCode.NotFound)
                {
                    await client.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri(DatabaseId, Collection1Id), futureTrade);

                    return(new OkResult(new HttpRequestMessage()));
                }

                throw;
            }
        }