public async Task <IActionResult> DeleteCharacter(int id) { await _charactersService.DeleteAsync(id); await _databaseContext.SaveChangesAsync(); return(NoContent()); }
public async Task <IActionResult> DeleteAsync(int id) { await _charactersService.DeleteAsync(id); return(NoContent()); }