Exemple #1
0
        public ActionResult <string> Delete(int vaultId, int keepId)
        {
            string userId     = HttpContext.User.Identity.Name;
            bool   successful = _vr.DeleteFromVaultKeep(vaultId, keepId, userId);

            if (!successful)
            {
                return(BadRequest("Cannot Delete"));
            }
            return(Ok("successfully deleted"));
        }