Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. [HttpGet]
  2. public IHttpActionResult Get(string type, int? id)
  3. {
  4. IRepository<type> repo = GetRepository<type>();
  5. return Ok(repo.Get(id));
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement