diff --git a/README.md b/README.md index 12fc0be..9e84e78 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ -This is a repository where I will keep various different samples. \ No newline at end of file +This is a repository where I will keep various different samples. + diff --git a/WebApi/MvcApplication1/ConsoleApplication1/Program.cs b/WebApi/MvcApplication1/ConsoleApplication1/Program.cs index 6477df7..b028732 100644 --- a/WebApi/MvcApplication1/ConsoleApplication1/Program.cs +++ b/WebApi/MvcApplication1/ConsoleApplication1/Program.cs @@ -8,21 +8,17 @@ using System.Text; using System.Threading.Tasks; using MvcApplication1.Models; - - public class Program { public static void Main(string[] args) { string url = @"http://localhost:10512/api/values"; - Person personToPost = new Person { FirstName = "first name here", LastName = "last name here", Id = new Random().Next() }; - var jsonFormatter = new System.Net.Http.Formatting.JsonMediaTypeFormatter(); var mediaType = new MediaTypeHeaderValue("application/json"); var requestMessage = new HttpRequestMessage(