コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: BlogService.cs プロジェクト: khenbest/auth0-demo
 internal IEnumerable <Blog> Get()
 {
     return(_repo.Get());
 }
コード例 #3
0
 public IEnumerable <Blog> Get()
 {
     return(_repo.Get());
 }