public Resource Get(int id, [FromQuery] ResourceRequest request) { return(GetSampleResource(_repository.GetById(id), request.Fields)); }
/// <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)); }