public async Task <IActionResult> Delete(Guid id) { try { await appointmentsAPI.DeleteAsync(id); } catch { // ignore } return(RedirectToAction("Index")); }
public async Task <bool> DeleteAsync(Guid id) => await client.DeleteAsync(id);