public async Task <ActionResult <Technology> > DeleteTechnology(int id) { var technology = await repository.DeleteAsync(id); if (technology == null) { return(NotFound()); } return(technology); }