PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms 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
Possible License(s): CC-BY-SA-3.0, Apache-2.0
  1. // <copyright>
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. // </copyright>
  4. namespace ContactManager_Simple
  5. {
  6. using System.Collections.Generic;
  7. public interface IContactRepository
  8. {
  9. void Update(Contact updatedContact);
  10. Contact Get(int id);
  11. List<Contact> GetAll();
  12. void Post(Contact contact);
  13. void Delete(int id);
  14. }
  15. }