Example #1
0
        // PUT api/values?guid=####&todId=#
        public void Put([FromUri] string guid, [FromUri] int todoId)
        {
            UserDatabase userDB = new UserDatabase();

            // Open database
            userDB.Open();
            // Update complete todo item
            userDB.CompleteTodoItem(guid, todoId);
            // Close database
            userDB.Close();
        }