Esempio n. 1
0
 public ActionResult <Vault> GetKeeps(string id)
 {
     try
     {
         return(Ok(_kService.GetByCreatorId(id)));
     }
     catch (System.Exception err)
     {
         return(BadRequest(err.Message));
     }
 }
 public ActionResult <Keep> GetKeepByUser(string id)
 {
     try
     {
         return(Ok(_ks.GetByCreatorId(id)));
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
 public ActionResult <Profile> GetKeepsByCreatorId(string id)
 {
     try
     {
         return(Ok(_keepsService.GetByCreatorId(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }