Exemple #1
0
 public ActionResult <VaultKeep> Post([FromBody] VaultKeep vaultKeep)
 {
     try
     {
         vaultKeep.UserId = HttpContext.User.FindFirstValue("Id");
         return(Ok(_repo.CreateVaultsKeeps(vaultKeep)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }