public IEnumerable <VModel.ScaleAttachments> GetAttachmentsByRefTypeAndParentId( Common.EnumAttachmentRefType refType, int parentId, string[] includePredicate = null ) { return(GetByExpression(o => o.Ref_Type == (int)refType && o.Parent.ID == parentId, includePredicate)); }
public IEnumerable <VModel.ScaleAttachments> GetAttachmentsWithPagingByRefIdAndRefType( Common.EnumAttachmentRefType refType, int refId, int parentId, out int totalRows, int page, int pageSize, string sortColumn, string sortType, string[] includePredicate = null, IList <IFilterDescriptor> filters = null) { IEnumerable <Model.ScaleAttachments> modEnumeration = _repository.FindByPaging <Model.ScaleAttachments>(out totalRows, o => o.Ref_ID == refId && o.Ref_Type == (int)refType && o.Parent.ID == parentId , page, pageSize, sortColumn, sortType, includePredicate, filters); IEnumerable <VModel.ScaleAttachments> busEnumeration = Map(modEnumeration); return(busEnumeration); }