PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/WCFWebApi/samples/scenario/ContactManager_Simple/Infrastructure/IContactRepository.cs

#
C# | 21 lines | 12 code | 6 blank | 3 comment | 0 complexity | a04c747fd0c69b478f486249a8db935c MD5 | raw file
 1// <copyright>
 2//   Copyright (c) Microsoft Corporation.  All rights reserved.
 3// </copyright>
 4
 5namespace ContactManager_Simple
 6{
 7    using System.Collections.Generic;
 8
 9    public interface IContactRepository
10    {
11        void Update(Contact updatedContact);
12
13        Contact Get(int id);
14
15        List<Contact> GetAll();
16
17        void Post(Contact contact);
18
19        void Delete(int id);
20    }
21}