/WCFWebApi/samples/scenario/ContactManager_Simple/Models/Contact.cs
# · C# · 33 lines · 20 code · 10 blank · 3 comment · 0 complexity · f44d56768a0e0e6f8f3b5e9f2f5fd3c8 MD5 · raw file
- // <copyright>
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // </copyright>
-
- namespace ContactManager_Simple
- {
- using System.Globalization;
-
- public class Contact
- {
- public int ContactId { get; set; }
-
- public string Name { get; set; }
-
- public string Address { get; set; }
-
- public string City { get; set; }
-
- public string State { get; set; }
-
- public string Zip { get; set; }
-
- public string Email { get; set; }
-
- public string Twitter { get; set; }
-
- public string Self
- {
- get { return string.Format(CultureInfo.CurrentCulture, "contact/{0}", this.ContactId); }
- set { }
- }
- }
- }