示例#1
0
        public async Task <ActionResult <VaultKeep> > EditVaultKeep(int id, [FromBody] VaultKeep editedVaultKeep)
        {
            try
            {
                Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>();

                editedVaultKeep.Id = id;
                return(Ok(_vks.EditVaultKeep(editedVaultKeep, userInfo)));
            }
            catch (System.Exception error)
            {
                return(BadRequest(error.Message));
            }
        }