public Talla_DatosInicialesBE ListarDatosIniciales(string usuario, int idCliente) { Talla_DatosInicialesBE obe = new Talla_DatosInicialesBE(); List <TallaBE> lobe = new List <TallaBE>(); List <ListaComboBE> loCliente = new List <ListaComboBE>(); List <ReporteColumnas> loColumns = new List <ReporteColumnas>(); List <TallaExportBE> loExport = new List <TallaExportBE>(); using (SqlConnection conR = new SqlConnection(strCnxRule)) { conR.Open(); loCliente = oMaestrosDA.Cliente(conR, usuario, idCliente); } using (SqlConnection con = new SqlConnection(strCnx)) { con.Open(); lobe = oTallaDA.ListarDatosIniciales(con, usuario, out loColumns, out loExport); } obe.loListado = lobe; obe.loCliente = loCliente; obe.loColumns = loColumns; obe.loExport = loExport; return(obe); }
public IHttpActionResult GetDatosIniciales(string usuario, int idCliente) { try { TallaBL oTallaBL = new TallaBL(idCliente); Talla_DatosInicialesBE lobe = oTallaBL.ListarDatosIniciales(usuario, idCliente); if (lobe != null) { return(Ok(Models.Util.GetBodyResponse(200, lobe))); } else { return(Ok(Models.Util.GetBodyResponse(300, "No se encontraron registros."))); } } catch (Exception ex) { /*LogSA.GrabarLogError("SOL TR", user, "GetListarOrdOtrs", ex);*/ return(Ok(Models.Util.GetBodyResponse(400, ex.Message))); } }