Last active
August 29, 2015 14:12
-
-
Save wcadap/faf5592ac12bf2b146ae 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 Contacts.Helpers; | |
using Contacts.Models; | |
using System.Web.Mvc; | |
namespace Contacts.Controllers | |
{ | |
public class ContactController : JsonController | |
{ | |
private ContactContext ContactsDB = new ContactContext(); | |
public ActionResult GetContacts() | |
{ | |
var Contacts = ContactsDB.Contacts; | |
return Json(Contacts, JsonRequestBehavior.AllowGet); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment