public async Task <IActionResult> Delete(int id) { var result = await _perfilService.Eliminar(id); var response = new ApiResponse <bool>(result); return(Ok(response)); }
public async Task <IActionResult> Eliminar(string codigo) { await servicio.Eliminar(codigo); return(RedirectToAction("Lista")); }