Ejemplo n.º 1
0
        public String Delete(int vaultId, int keepId, string userId)
        {
            var exists = _repo.GetVaultKeep(vaultId, keepId, userId);

            // if (userId != exists.UserId)
            // {
            //     return "error";
            // }



            if (exists != null)
            {
                _repo.Delete(vaultId, keepId, userId);
            }
            return("successfully deleted");
        }