PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 5namespace ContactManager_Simple
 6{
 7    using System.Globalization;
 8
 9    public class Contact
10    {
11        public int ContactId { get; set; }
12
13        public string Name { get; set; }
14
15        public string Address { get; set; }
16        
17        public string City { get; set; }
18        
19        public string State { get; set; }
20        
21        public string Zip { get; set; }
22        
23        public string Email { get; set; }
24        
25        public string Twitter { get; set; }
26
27        public string Self
28        {
29            get { return string.Format(CultureInfo.CurrentCulture, "contact/{0}", this.ContactId); }
30            set { }
31        }
32    }
33}