Example #1
0
 public ActionResult <IEnumerable <Keep> > Get()
 {
     try
     {
         return(Ok(_repo.GetPublicKeeps()));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }
Example #2
0
 public ActionResult <IEnumerable <Keep> > Get() //key is from the Model
 {
     try
     {
         return(Ok(_repository.GetPublicKeeps())); //referencing KeepsRepo
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
 public IEnumerable <Keep> GetAll()
 {
     return(_repo.GetPublicKeeps());
 }
Example #4
0
 public ActionResult <IEnumerable <Keep> > GetPublic()
 {
     return(Ok(_keepRepo.GetPublicKeeps()));
 }
Example #5
0
 public List <Keep> GetPublicKeeps()
 {
     return(_repo.GetPublicKeeps());
 }