public IHttpActionResult verAprendices(ParametrosDTO objP) { try { TecnicaBl obj = new TecnicaBl(); var Datos = obj.verAprendices(int.Parse(objP.Parametro1)); if (Datos.Count == 0) { return(Ok(new { success = false })); } else { return(Ok(new { success = true, Datos })); } } catch (Exception exc) { return(Ok(new { success = false, exc = exc.Message })); } }