Esempio n. 1
0
 public ActionResult <Keep> Get(int id)
 {
     try
     {
         return(Ok(_repo.GetKeepById(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Esempio n. 2
0
 public ActionResult <Keep> GetOne(int id)
 {
     return(Ok(_keepRepo.GetKeepById(id)));
 }