public async Task <ActionResult <AccountCard> > Create(Account item)
        {
            await Task.Run(() => AccountProxy.Create(item));

            return(CreatedAtRoute("GetAccount", new { id = item.Id.ToString() }, item));
        }
Esempio n. 2
0
 public ActionResult <Account> Create([FromBody] Account item)
 {
     AccountProxy.Create(item);
     return(CreatedAtRoute("GetItem", new { id = item.Id.ToString() }, item));
 }