示例#1
0
        public ActionResult <VaultKeep> Create([FromBody] VaultKeep newVK)
        {
            newVK.UserId = HttpContext.User.Identity.Name;
            VaultKeep vk = _vkr.CreateVK(newVK);

            if (vk == null)
            {
                return(BadRequest());
            }
            else
            {
                return(Ok(vk));
            }
        }