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()); }
public IActionResult Update(string id, Account itemIn) { var book = AccountProxy.Get(id); if (book == null) { return(NotFound()); } AccountProxy.Update(id, itemIn); return(NoContent()); }