Beispiel #1
0
 public ActionResult <String> AddKeepToVault(int id, [FromBody] VaultKeeps vaultKeeps)
 {
     try
     {
         var uid = HttpContext.User.FindFirstValue("Id");
         vaultKeeps.UserId  = uid;
         vaultKeeps.VaultId = id;
         return(Ok(_repo.AddKeepToVault(vaultKeeps)));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }