Guest User

Untitled

a guest
Jun 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. public class DocumentResult
  2. {
  3. public DocumentResult()
  4. {
  5. }
  6.  
  7. public FooViewModel { get; set; }
  8. }
  9.  
  10. public class FooViewModel{
  11. public string CompanyCode { get; set; }
  12. public DateTime RegistrationDate { get; set; }
  13. }
  14.  
  15. [ServiceContract]
  16. [DataContractFormatAttribute]
  17. public interface IDocuments
  18. {
  19. [OperationContract]
  20. [WebGet(UriTemplate = "/{companyCode}/{documentId}/docdetail", ResponseFormat = WebMessageFormat.Json)]
  21. DocumentResult GetDocument(string companyCode, string documentId);
  22. }
  23.  
  24. public class Documents : IDocuments
  25. {
  26. public DocumentResult GetDocument(string companyCode, string documentId)
  27. {
  28. // breakpoint here
  29. ...
  30. }
  31. }
Add Comment
Please, Sign In to add comment