Contact Manager Web API

This sample uses ASP.NET Web API to build a simple contact manager application. The application consists of a contact manager web API that is used by an ASP.NET MVC application, a Windows Phone application, and a Windows 8 app to display and manage a list of contacts.

C# (1.9 MB)
 
 
 
 
 
4.4 Star
(37)
93,822 times
Add to favorites
8/16/2012
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • 555-555-0199@example.com
    1 Posts | Last post October 13, 2017
    • 555-555-0199@example.com
  • 555-555-0199@example.com
    1 Posts | Last post October 12, 2017
    • 555-555-0199@example.com
  • I have downloaded the contact manager sample application but this applicatio is not loading when opening with visual studio,what is the issue please help.
    1 Posts | Last post August 13, 2017
    • I have downloaded the contact manager sample application but this applicatio is not loading when opening with visual studio,what is the issue please help.
  • Update phone numbers
    1 Posts | Last post October 23, 2015
    • Hi! Can I update the contact's phone numbers with an application like this sample? CRUD operations on the contacts phone store are possible? Thank you!
  • Updating the application for the latest MVC, ASP.NET??
    1 Posts | Last post February 12, 2015
    • When will this sample application be updated to the latest Visual Studio, MVC, ASP.NET, etc??
  • Deploying the app in Azure WebSites
    1 Posts | Last post August 23, 2014
    • Hi,
      I deployed the app in Azure websites but I can't see the contact cards.
      In the log file I can see that app_data/contactmanager.xml can not be found
      Any ideas?
      
      Many thanks!
  • MVC 5
    1 Posts | Last post January 01, 2014
    • Hi, 
      
      Do you have near future plans to write this in MVC 5?
      
      Thanks,
      Hassan
  • Windows Phone 8 project is not running.
    1 Posts | Last post September 07, 2013
    • Hi, i am running your sample application on Windows 8 and VS 2012. When running web  api project it works fine and displays the list of sample contacts and respective end points. However when i try to run the WindowsPhone 8 application from my Windows 8 emulator i am running into this error:
      
      error line
      var contacts = JsonConvert.DeserializeObject<Contact[]>(e.Result);
      
      error
      The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
      
      Can you please suggest if i need to make any configuration change to make this work?
      
      PS: other windows phone 8 apps are running fine so i know that all windows 8 phone SDK components are installed properly.
      
      Thanks,
      Anurag
  • Contact Manager Data Duplication
    1 Posts | Last post June 07, 2013
    • Why is that when i click on the contact and i go back to the main page of the contact, The Contacts are duplicated? The whole GridView is duplicated with the same contacts ?
      
      How do i avoid this ?
      
      Of course in WinRT .
      
      Example : if i enable the contact to be selected to view all its details, it takes me to ItemDetailsPage Then if i navigate back to the GroupedItemsPage The Whole Is Duplicated.
      
      Thank You
  • ASP Web Api - Routing with extension
    1 Posts | Last post March 19, 2013
    • HI, I'm trying to get work my Web Api application to work with url extension (http:<url>/contacts.json like in the ContactManager sample). I put the same code in WebApiConfig.cs
      [code]
      config.Formatters.JsonFormatter.AddUriPathExtensionMapping("json","application/json");
      config.Formatters.XmlFormatter.AddUriPathExtensionMapping("xml","application/xml");
      
      config.Routes.MapHttpRoute(
                      name:"ControllerWithExt",
                      routeTemplate:"api/{controller}.{ext}");
      
                  config.Routes.MapHttpRoute(
                      name:"IdWithExt",
                      routeTemplate:"api/{controller}/{id}.{ext}");
      [/code]
      
      But I got 404 Not found result 
      
      I try the ContactManager sample and it work fine. 
      
      The only difference between my project and the sample is the version of the packages.
      
      If someone can say me what's i'm doing wrong.
      
      Regards
1 - 10 of 28 Items