Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
This is a repository where I will keep various different samples.
This is a repository where I will keep various different samples.

4 changes: 0 additions & 4 deletions WebApi/MvcApplication1/ConsoleApplication1/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Person>(
Expand Down