public void UpdateIndexedLocationReturnsErrorIfIndexedLocationNull()
        {
            var model    = new IndexedLocationModel(MockMakerClient.Object);
            var response = model.UpdateIndexedLocation(MockMakerClient.Object, null);

            Assert.IsTrue(!String.IsNullOrEmpty(response.Error));
        }
        public ActionResult UpdateIndexedLocation(string indexedLocation, string id)
        {
            // pass client into constructor
            var model = new IndexedLocationModel(client, id);

            var response = model.UpdateIndexedLocation(client, indexedLocation);

            if (String.IsNullOrEmpty(response.Error))
            {
                Response.StatusCode = (int)HttpStatusCode.OK;
                return(Json("The indexed location request was valid"));
            }
            Response.StatusCode = (int)HttpStatusCode.BadRequest;
            return(Json(response.Error));
        }