コード例 #1
0
        public async Task <ActionResult <Keep> > EditKeepAmount(int id, [FromQuery] Keep updated)
        {
            try
            {
                Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>();

                updated.Id = id;
                return(Ok(_ks.EditKeepAmount(updated, userInfo)));
            }
            catch (System.Exception e)
            {
                return(BadRequest(e.Message));
            }
        }