public int Count(IssueNoteSearchEntity SearchIssueNoteEntity) { if (SearchIssueNoteEntity == null) { SearchIssueNoteEntity = new IssueNoteSearchEntity(); } IQueryable <IssueNote> IssueNotes = context.IssueNotes; Apply(IssueNotes, SearchIssueNoteEntity); return(IssueNotes.Count()); }
public List <IssueNote> List(IssueNoteSearchEntity SearchIssueNoteEntity) { if (SearchIssueNoteEntity == null) { SearchIssueNoteEntity = new IssueNoteSearchEntity(); } IQueryable <IssueNote> IssueNotes = context.IssueNotes; Apply(IssueNotes, SearchIssueNoteEntity); SkipAndTake(IssueNotes, SearchIssueNoteEntity); return(IssueNotes.ToList()); }
private IQueryable <IssueNote> Apply(IQueryable <IssueNote> IssueNotes, IssueNoteSearchEntity SearchIssueNoteEntity) { if (SearchIssueNoteEntity.Id.HasValue) { IssueNotes = IssueNotes.Where(t => t.Id == SearchIssueNoteEntity.Id.Value); } if (SearchIssueNoteEntity.InvoiceId.HasValue) { IssueNotes = IssueNotes.Where(t => t.InvoiceId == SearchIssueNoteEntity.InvoiceId.Value); } if (SearchIssueNoteEntity.CustomerId.HasValue) { IssueNotes = IssueNotes.Where(t => t.CustomerId == SearchIssueNoteEntity.CustomerId.Value); } if (SearchIssueNoteEntity.WareHouseId.HasValue) { IssueNotes = IssueNotes.Where(t => t.WareHouseId == SearchIssueNoteEntity.WareHouseId.Value); } if (SearchIssueNoteEntity.Lock.HasValue) { IssueNotes = IssueNotes.Where(t => t.Lock == SearchIssueNoteEntity.Lock.Value); } return(IssueNotes); }
public List <IssueNoteEntity> Get(EmployeeEntity EmployeeEntity, IssueNoteSearchEntity IssueNoteSearchEntity) { List <IssueNote> IssueNotes = UnitOfWork.IssueNoteRepository.List(IssueNoteSearchEntity); return(IssueNotes.ToList().Select(c => new IssueNoteEntity(c)).ToList()); }
public int Count(EmployeeEntity EmployeeEntity, IssueNoteSearchEntity IssueNoteSearchEntity) { return(UnitOfWork.IssueNoteRepository.Count(IssueNoteSearchEntity)); }
public List <IssueNoteEntity> Get(IssueNoteSearchEntity SearchIssueNoteEntity) { return(IssueNoteService.Get(EmployeeEntity, SearchIssueNoteEntity)); }
public long Count(IssueNoteSearchEntity SearchIssueNoteEntity) { return(IssueNoteService.Count(EmployeeEntity, SearchIssueNoteEntity)); }