예제 #1
0
 public Resource Get(int id, [FromQuery] ResourceRequest request)
 {
     return(GetSampleResource(_repository.GetById(id), request.Fields));
 }
예제 #2
0
 /// <summary>
 /// Gets sample model by id
 /// </summary>
 /// <param name="id">sample model id</param>
 /// <returns></returns>
 public SampleModel GetById(int id)
 {
     return(_sampleRepository.GetById(id));
 }