public List <InfoOrdenView> ListaOrdenesCliente(string cedula) { DAOInfoOrdenView orden = new DAOInfoOrdenView(); List <TOInfoOrdenView> listaTO = orden.ListaOrdenes(); foreach (TOInfoOrdenView x in listaTO) { lista.Add(new InfoOrdenView(x.Cedula, x.Nombre, x.Apellido1, x.Apellido2, x.Codigo_Orden, x.Estado_pedido, DateTime.Parse(x.Hora))); } return(lista); }
public List <InfoOrdenView> ListaOrdenes() { DAOInfoOrdenView dao = new DAOInfoOrdenView(); List <TOInfoOrdenView> listaTO = dao.ListaOrdenes(); foreach (TOInfoOrdenView x in listaTO) { InfoOrdenView orden = new InfoOrdenView(x.Cedula, x.Nombre, x.Apellido1, x.Apellido2, x.Codigo_Orden, x.Estado_pedido, DateTime.Parse(x.Hora).AddHours(1)); orden.clonarDetalles(x.detalles); lista.Add(orden); } return(lista); }