public async Task <IActionResult> DeleteConfirmed(int id) { ViewData["controller"] = "Parametros"; ViewData["action"] = "Eliminar"; await _parametrosRepository.DeleteAsync(id); return(RedirectToAction(nameof(Index))); }
public async Task <bool> DeleteAsync(int ID) { return(await _Repository.DeleteAsync(ID)); }