Exemplo n.º 1
0
        public Spartane.Core.Classes.Musculos.MusculosPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            var padstartRowIndex = _dataProvider.GetParameter();

            padstartRowIndex.ParameterName = "startRowIndex";
            padstartRowIndex.DbType        = DbType.Int32;
            padstartRowIndex.Value         = startRowIndex;

            var padmaximumRows = _dataProvider.GetParameter();

            padmaximumRows.ParameterName = "maximumRows";
            padmaximumRows.DbType        = DbType.Int32;
            padmaximumRows.Value         = maximumRows;

            var padWhere = _dataProvider.GetParameter();

            padWhere.ParameterName = "Where";
            padWhere.DbType        = DbType.String;
            padWhere.Value         = Where;

            var padOrder = _dataProvider.GetParameter();

            padOrder.ParameterName = "Order";
            padOrder.DbType        = DbType.String;
            padOrder.Value         = Order;

            var data = _dbContext.ExecuteStoredProcedureList <Spartane.Core.Classes.StoredProcedure.SpListSelAllMusculos>("sp_ListSelAll_Musculos", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            MusculosPagingModel result = null;

            if (data != null)
            {
                result = new MusculosPagingModel
                {
                    Musculoss =
                        data.Select(m => new Spartane.Core.Classes.Musculos.Musculos
                    {
                        Folio         = m.Musculos_Folio
                        , Descripcion = m.Musculos_Descripcion

                                        //,Id = m.Id
                    }).ToList()
                };
            }
            return(result);
        }
Exemplo n.º 2
0
        public Spartane.Core.Domain.Musculos.MusculosPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            MusculosPagingModel result = null;

            return(result);
        }