コード例 #1
0
 public IEnumerable<StudentTag> GetTags()
 {
     StudentTag[] tags = new StudentTag[]
     {
        new StudentTag{Id=1, Name="好动"},
        new StudentTag{Id=1, Name="善良"}
     };
     return tags;
 }
コード例 #2
0
 public StudentTag Post(StudentTag value)
 {
     repository.Add(value);
     return value;
 }
コード例 #3
0
 StudentTag IStudentTagRepository.Add(StudentTag tag)
 {
     DataGateway<DataContext>.Instance.Add(tag);
     DataGateway<DataContext>.Instance.Save();
     return tag;
 }