public Spartane.Core.Classes.Spartan_Format.Spartan_FormatPagingModel 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.SpListSelAllSpartan_Format>("sp_ListSelAll_Spartan_Format", padWhere, padOrder, padstartRowIndex, padmaximumRows); Spartan_FormatPagingModel result = null; if (data != null) { result = new Spartan_FormatPagingModel { Spartan_Formats = data.Select(m => new Spartane.Core.Classes.Spartan_Format.Spartan_Format { FormatId = m.Spartan_Format_FormatId , Registration_Date = m.Spartan_Format_Registration_Date , Registration_Hour = m.Spartan_Format_Registration_Hour , Registration_User = m.Spartan_Format_Registration_User , Format_Name = m.Spartan_Format_Format_Name , Format_Type = m.Spartan_Format_Format_Type , Format_Type_Spartan_Format_Type = new Core.Classes.Spartan_Format_Type.Spartan_Format_Type() { FormatTypeId = m.Spartan_Format_Format_Type.GetValueOrDefault(), Description = m.Spartan_Format_Format_Type_Description } , Search = m.Spartan_Format_Search , Object = m.Spartan_Format_Object , Spartan_Object_Spartan_Format_Object = new Core.Classes.Spartan_Object.Spartan_Object() { Object_Id = m.Spartan_Format_Object ?? 0, Name = m.Spartan_Format_Object_Name } , User_Spartan_Format_User = new Core.Classes.Spartan_User.Spartan_User { Id_User = Convert.ToInt32(m.Spartan_Format_Registration_User), Name = m.Spartan_Format_Registration_User_Name, Role = 0, Status = 0 } , Header = m.Spartan_Format_Header , Body = m.Spartan_Format_Body , Footer = m.Spartan_Format_Footer , Filter = m.Spartan_Format_Filter //,Id = m.Id }).ToList() }; } return(result); }
public Spartane.Core.Domain.Spartan_Format.Spartan_FormatPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order) { Spartan_FormatPagingModel result = null; return(result); }