public async Task <IActionResult> Delete(int id)
        {
            var result = await _perfilService.Eliminar(id);

            var response = new ApiResponse <bool>(result);

            return(Ok(response));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Eliminar(string codigo)
        {
            await servicio.Eliminar(codigo);

            return(RedirectToAction("Lista"));
        }