public IHttpActionResult TraerAlumnoDetalle(int AlumnoId) { var Result = BllAlumnoDetalle.GetAlumnoDetalle(AlumnoId); if ((bool)Result.GetType().GetProperty("Estatus").GetValue(Result, null)) { return(Ok(Result)); } else { return(BadRequest("Fallo al momento de guardar, " + Result.GetType().GetProperty("Message").GetValue(Result, null))); } }
public object TraerAlumnoDetalle(string AlumnoId) { return(BllAlumnoDetalle.GetAlumnoDetalle(int.Parse(AlumnoId))); }