public static async Task <CreatedRecordResult> CreateLocation(string source, string site, string warehouse, string gate, string row, string position, string type, string isRack)
        {
            var apiVersion = "1.0";
            var body       = new CreateLocationFromBody
            {
                Source    = source,
                Site      = site,
                Warehouse = warehouse,
                Gate      = gate,
                Row       = row,
                Position  = position,
                Type      = type,
                IsRack    = isRack
            };
            var jsonBody = JsonConvert.SerializeObject(body);

            var response = await _client.PostAsync(string.Format("api/locations?api-version={0}", apiVersion), new StringContent(jsonBody, Encoding.UTF8, "application/json"));

            var id     = response.Headers.Location.GetId();
            var eTag   = response.Headers.ETag.Tag;
            var result = new CreatedRecordResult {
                Id = id, ETag = eTag
            };

            return(result);
        }
        public static async Task <CreatedRecordResult> CreateBusinessUnit(string name)
        {
            var apiVersion = "1.0";
            var body       = new CreateBusinessUnitFromBody
            {
                Name = name
            };
            var jsonBody = JsonConvert.SerializeObject(body);

            var response = await _client.PostAsync(string.Format("api/businessunits?api-version={0}", apiVersion), new StringContent(jsonBody, Encoding.UTF8, "application/json"));

            var id     = response.Headers.Location.GetId();
            var eTag   = response.Headers.ETag.Tag;
            var result = new CreatedRecordResult {
                Id = id, ETag = eTag
            };

            return(result);
        }
        public static async Task <CreatedRecordResult> CreateTypePlanning(string code, string name, string source)
        {
            var apiVersion = "1.0";
            var body       = new CreateTypePlanningFromBody
            {
                Source = source,
                Code   = code,
                Name   = name
            };
            var jsonBody = JsonConvert.SerializeObject(body);

            var response = await _client.PostAsync(string.Format("api/typeplannings?api-version={0}", apiVersion), new StringContent(jsonBody, Encoding.UTF8, "application/json"));

            var id     = response.Headers.Location.GetId();
            var eTag   = response.Headers.ETag.Tag;
            var result = new CreatedRecordResult {
                Id = id, ETag = eTag
            };

            return(result);
        }