Exemple #1
0
 public ActionResult <string> Post([FromBody] VaultKeep vk)
 {
     vk.UserId = HttpContext.User.Identity.Name;
     if (vk.UserId != null)
     {
         return(Ok(_repo.AddKeepToVault(vk)));
     }
     return(Unauthorized($"Can not add keep to vault"));
 }