namespaces

This commit is contained in:
Tommy Parnell
2018-11-20 00:00:38 -05:00
parent 1042797e4d
commit f866d875da

View File

@@ -0,0 +1,29 @@
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace azure_functions_talk
{
public class Dounut
{
private static List<string> flavors = new List<string>()
{
"choco",
"strawberry",
"blackberry",
"boston creme",
"vanilla"
};
public string Flavor { get; set; } = RandomFlavor();
public static string RandomFlavor()
{
return flavors[new Random().Next(flavors.Count)];
}
}
}