Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpGet]
- public IHttpActionResult Get(string type, int? id)
- {
- IRepository<type> repo = GetRepository<type>();
- return Ok(repo.Get(id));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement