public IHttpActionResult ConsultarAlternativa(ParametrosDTO objP) { try { FichasInstructorBl obj = new FichasInstructorBl(); var Datos = obj.ConsultarAlternativa(int.Parse(objP.Parametro1)); return(Ok(new { success = true, Datos })); } catch (Exception exc) { return(Ok(new { succes = false, exc = exc.Message })); } }
public IHttpActionResult GuardarAlternativaEdit(Alternativa_Practicas objA) { try { FichasInstructorBl obj = new FichasInstructorBl(); obj.GuardarAlternativaEdit(objA); return(Ok(new { success = true })); } catch (Exception exc) { return(Ok(new { success = false, exc = exc.Message })); } }
public IHttpActionResult GuardarAlternativa(Alternativa_Practicas objA) { try { FichasInstructorBl obj = new FichasInstructorBl(); var Datos = obj.GuardarAlternativa(objA); if (Datos) { return(Ok(new { success = true })); } else { return(Ok(new { success = false })); } } catch (Exception exc) { return(Ok(new { success = false, exc = exc.Message })); } }
public IHttpActionResult verAprendices(ParametrosDTO objP) { try { FichasInstructorBl obj = new FichasInstructorBl(); 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 })); } }