public async Task <IActionResult> Update(string id, Account itemIn)
        {
            var book = await Task.Run(() => AccountProxy.Get(id));

            if (book == null)
            {
                return(NotFound());
            }
            await Task.Run(() => AccountProxy.Update(id, itemIn));

            return(NoContent());
        }
예제 #2
0
        public IActionResult Update(string id, Account itemIn)
        {
            var book = AccountProxy.Get(id);

            if (book == null)
            {
                return(NotFound());
            }

            AccountProxy.Update(id, itemIn);

            return(NoContent());
        }