internal Blog Get(int id) { //NOTE If you do not null check you could get a 204 (No Context) if the blog was not found Blog found = _repo.Get(id); if (found == null) { throw new Exception("Invalid Id"); } return(found); }
internal IEnumerable <Blog> Get() { return(_repo.Get()); }
public IEnumerable <Blog> Get() { return(_repo.Get()); }