Beispiel #1
0
        public ActionResult <string> Delete(int vaultId, int keepId)
        {
            VaultKeep vk = new VaultKeep();

            vk.UserId  = HttpContext.User.Identity.Name;
            vk.VaultId = vaultId;
            vk.KeepId  = keepId;
            if (_repo.DeleteVaultKeep(vk))
            {
                return(Ok("Successfully Deleted vault"));
            }
            return(BadRequest("Unable to Delete Vault"));
        }