Exemplo n.º 1
0
        public ActionResult <string> Delete(int vaultId, int keepId)
        {
            var userId = HttpContext.User.Identity.Name;

            if (_repo.DeleteKeepByVaultId(vaultId, keepId, userId))
            {
                return(Ok("Successfully deleted"));
            }
            return(BadRequest("Unable to delete"));
        }