public ActionResult <IEnumerable <Keep> > Get() { IEnumerable <Keep> results = _pr.GetAll(); if (results == null) { return(BadRequest()); } return(Ok(results)); }
public ActionResult <IEnumerable <Keep> > Get() { try { return(Ok(_repo.GetAll())); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <IEnumerable <Keep> > Get() { try { var id = HttpContext.User.FindFirstValue("Id"); return(Ok(_repo.GetAll(id))); } catch (Exception e) { return(BadRequest(e)); } }
public ActionResult <IEnumerable <Keep> > Get() { return(Ok(_keepRepo.GetAll())); }
//get keeps public IEnumerable <Keep> Get() { return(_repo.GetAll()); }
public IEnumerable <Keep> Get() { var user = HttpContext.User.Identity.Name; return(_repo.GetAll()); }