Skip to content

Instantly share code, notes, and snippets.

@kelumKP
Created February 28, 2021 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelumKP/15e5a536c24657ee334ce2a5111dd292 to your computer and use it in GitHub Desktop.
Save kelumKP/15e5a536c24657ee334ce2a5111dd292 to your computer and use it in GitHub Desktop.
Sample Service Implementation
public class SampleService : ISampleService
{
IContext _context;
public SampleService(IContext context)
{
_context = context;
}
public List<SampleTable> GetSampleList()
{
var availabelData = _context.SampleTables.ToList();
return availabelData;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment