コード例 #1
0
        public async Task <ActionResult <VaultKeep> > CreateOne([FromBody] VaultKeep newVaultKeep)
        {
            try
            {
                Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>();

                newVaultKeep.CreatorId = userInfo.Id;
                return(Ok(_vkservice.CreateOne(newVaultKeep)));
            }
            catch (System.Exception err)
            {
                return(BadRequest(err.Message));
            }
        }