コード例 #1
0
ファイル: KeepsController.cs プロジェクト: bholsinger09/keepr
 public ActionResult <IEnumerable <Keep> > Get()
 {
     try
     {
         return(Ok(_repo.GetAll()));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }
コード例 #2
0
 public ActionResult <IEnumerable <Keep> > Get()
 {
     try
     {
         var id = HttpContext.User.FindFirstValue("Id");
         return(Ok(_repo.GetAll(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }
コード例 #3
0
 public IEnumerable <Keep> Get()
 {
     return(db.GetAll());
 }
コード例 #4
0
 public ActionResult <IEnumerable <Keep> > GetAll()
 {
     return(Ok(_keepRepo.GetAll()));
 }
コード例 #5
0
 public IEnumerable <Keep> Get()
 {
     return(_repo.GetAll());
 }