Exemple #1
0
        public async Task <ActionResult <VaultKeep> > DeleteOne(int id)
        {
            try
            {
                Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>();

                return(Ok(_vkservice.DeleteOne(id, userInfo.Id)));
            }
            catch (System.Exception err)
            {
                return(BadRequest(err.Message));
            }
        }