public async Task <ActionResult> Delete(string key, CancellationToken cancellation)
        {
            var skey = ShardKey.FromExternalString(key);
            await _store.DeleteCustomer(skey, cancellation);

            return(Ok());
        }
Beispiel #2
0
 public IActionResult OnPostDelete(Guid id)
 {
     CustomerStore.DeleteCustomer(id);
     return(RedirectToPage());
 }
 public IActionResult DeleteCustomer(int id)
 {
     cs.DeleteCustomer(id);
     return(Ok());
 }