public Spartane.Core.Classes.Estado.EstadoPagingModel 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.SpListSelAllEstado>("sp_ListSelAll_Estado", padWhere, padOrder, padstartRowIndex, padmaximumRows); EstadoPagingModel result = null; if (data != null) { result = new EstadoPagingModel { Estados = data.Select(m => new Spartane.Core.Classes.Estado.Estado { Clave = m.Estado_Clave , Nombre_del_Estado = m.Estado_Nombre_del_Estado , Folio_Pais = m.Estado_Folio_Pais , Folio_Pais_Pais = new Core.Classes.Pais.Pais() { Clave = m.Estado_Folio_Pais.GetValueOrDefault(), Nombre_del_Pais = m.Estado_Folio_Pais_Nombre_del_Pais } //,Id = m.Id }).ToList() }; } return(result); }
public Spartane.Core.Domain.Estado.EstadoPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order) { EstadoPagingModel result = null; return(result); }