/* // GET api/number * public IEnumerable<string> Get() * { * return new string[] { "value1", "value2" }; * }*/ // GET api/number/mykey public string Get(string key, string password) { if (password != System.Configuration.ConfigurationManager.AppSettings.Get("Password")) { return("Invalid password. Please try again"); } return(TableStorageNumberStore.GetNextSequenceNumber(key)); }
private GetNextNumberResponse GetFromTableStorageDirectly(string key) { var response = new GetNextNumberResponse { ForKey = key, }; response.NextSequenceNumber = TableStorageNumberStore.GetNextSequenceNumber(key); return(response); }