Created
September 22, 2014 23:33
-
-
Save andrebaltieri/6bad1a1a44a2bd78e807 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNet.Mvc; | |
using System.Collections.Generic; | |
public class CustomerController : Controller | |
{ | |
public JsonResult Get() | |
{ | |
List<Customer> customers = new List<Customer>(); | |
customers.Add(new Customer(1, "André", "Baltieri")); | |
return Json(customers); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment