public async Task <ActionResult <AccountCard> > Create(Account item) { await Task.Run(() => AccountProxy.Create(item)); return(CreatedAtRoute("GetAccount", new { id = item.Id.ToString() }, item)); }
public ActionResult <Account> Create([FromBody] Account item) { AccountProxy.Create(item); return(CreatedAtRoute("GetItem", new { id = item.Id.ToString() }, item)); }