public async Task <IActionResult> Delete(int id) { var result = await avengerDomain.DeleteAsync(id); if (!result) { return(NotFound()); } return(Ok(true)); }
public async Task <IActionResult> Delete([FromODataUri] int key) { var result = await avengerDomain.DeleteAsync(key); if (!result) { return(NotFound()); } return(Ok(true)); }
/// <summary> /// DeleteAsync /// </summary> /// <param name="id"></param> /// <returns></returns> public async Task <bool> DeleteAsync(string id) { return(await avengerDomain.DeleteAsync(id)); }