Example #1
0
 public List<Comment> GetComments(int? page, int? count)
 {
     var comment1 = new Comment
     {
         Id = 1,
         Subject = "First Subject",
         Body = "First Body",
         AuthorName = "First Author"
     };
     var comment2 = new Comment
     {
         Id = 2,
         Subject = "Second Subject",
         Body = "Second Body",
         AuthorName = "Second Author"
     };
     var items = new List<Comment> { comment1, comment2 };
     return items;
 }
Example #2
0
 public Comment Create(Comment item)
 {
     item.Id = 1;
     return item;
 }
Example #3
0
 public Comment Update(Comment item)
 {
     return item;
 }