public string InsertarDudasEmpresa(String mensaje, int idEmpre, string nomUser, string correoUser) { try { if (SoapHeader == null) { throw new Exception("Requiere Validacion"); } if (!SoapHeader.blCredencialesValidas(SoapHeader)) { throw new Exception("Requiere Validacion"); } L_ServicioComentario logi = new L_ServicioComentario(); try { logi.insertar_Comentario(mensaje, idEmpre, nomUser, correoUser); return("Comentario Enviado Correctamente"); } catch (Exception ex) { //ENVIAR MENSAJE DE ERROR return("Ha Ocurrido Un Error Inesperado " + ex.Message); } } catch (Exception ex) { throw ex; } }
public string cargar_empresas() { try { if (SoapHeader == null) { throw new Exception("Requiere Validacion"); } if (!SoapHeader.blCredencialesValidas(SoapHeader)) { throw new Exception("Requiere Validacion"); } L_ServicioComentario logi = new L_ServicioComentario(); return(logi.load_companies()); } catch (Exception ex) { throw ex; } }