public async Task <ActionResult> Delete(string key, CancellationToken cancellation) { var skey = ShardKey.FromExternalString(key); await _store.DeleteCustomer(skey, cancellation); return(Ok()); }
public IActionResult OnPostDelete(Guid id) { CustomerStore.DeleteCustomer(id); return(RedirectToPage()); }
public IActionResult DeleteCustomer(int id) { cs.DeleteCustomer(id); return(Ok()); }