/WCFWebApi/samples/scenario/ContactManager_Simple/Models/Contact.cs

# · C# · 33 lines · 20 code · 10 blank · 3 comment · 0 complexity · f44d56768a0e0e6f8f3b5e9f2f5fd3c8 MD5 · raw file

  1. // <copyright>
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. // </copyright>
  4. namespace ContactManager_Simple
  5. {
  6. using System.Globalization;
  7. public class Contact
  8. {
  9. public int ContactId { get; set; }
  10. public string Name { get; set; }
  11. public string Address { get; set; }
  12. public string City { get; set; }
  13. public string State { get; set; }
  14. public string Zip { get; set; }
  15. public string Email { get; set; }
  16. public string Twitter { get; set; }
  17. public string Self
  18. {
  19. get { return string.Format(CultureInfo.CurrentCulture, "contact/{0}", this.ContactId); }
  20. set { }
  21. }
  22. }
  23. }