public IActionResult TotalElementos([FromBody] dynamic value) { try { string filtro_busqueda = value.filtro_busqueda != null ? (string)value.filtro_busqueda : null; String excluir = value.idResponsables != null ? (string)value.idResponsables : null; long total = ColaboradorDAO.getTotal(filtro_busqueda, excluir); return(Ok(new { success = true, total = total })); } catch (Exception e) { CLogger.write("5", "ColaboradorController.class", e); return(BadRequest(500)); } }