public List<STDDatos.Evaluacion> Listar() { try { var lista = new STDDatos.EvaluacionBL().Listar(); return lista; } catch (Exception ex) { throw new FaultException(ex.Message); } }
public List<STDDatos.Evaluacion> Obtener(string codigo) { try { var lista = new STDDatos.EvaluacionBL().Obtener(Convert.ToInt32(codigo)); return lista; } catch (Exception ex) { throw new FaultException(ex.Message); } }
public String Actualizar(STDDatos.Evaluacion expedienteModificado) { String mensaje = ""; try { bool resultado = new STDDatos.EvaluacionBL().Actualizar(expedienteModificado); if (!resultado) { return "Ocurrio un error al momento de actualizar el expediente."; } return mensaje; } catch (Exception ex) { throw new FaultException(ex.Message); } }
public List<STDDatos.Evaluacion> Listar() { string mensaje = ""; try { List<STDDatos.Evaluacion> lista = new STDDatos.EvaluacionBL().Listar(); if (lista.Count > 0) return lista; else { mensaje = "No se encontraron registros."; throw new FaultException(mensaje); } } catch (Exception) { throw new FaultException(mensaje); } }