Beispiel #1
0
        public ListResultDto <QuotationStatusList> GetQuotationStatus(GetQuotationStatusInput input)
        {
            var query = _quotationStatusRepository.GetAll()
                        .WhereIf(
                !input.Filter.IsNullOrWhiteSpace(),
                u =>
                u.Code.Contains(input.Filter) ||
                u.Name.Contains(input.Filter) ||
                u.Id.ToString().Contains(input.Filter))
                        .ToList();

            return(new ListResultDto <QuotationStatusList>(query.MapTo <List <QuotationStatusList> >()));
        }
Beispiel #2
0
        public ListResultDto <QuotationStatusList> GetQuotationStatus(GetQuotationStatusInput input)
        {
            using (_unitOfWorkManager.Current.SetTenantId(_session.TenantId))
            {
                var query = _QuotationStatusRepository.GetAll()
                            .WhereIf(
                    !input.Filter.IsNullOrWhiteSpace(),
                    u =>
                    u.QuotationStatusCode.Contains(input.Filter) ||
                    u.QuotationStatusName.Contains(input.Filter))
                            .ToList();

                return(new ListResultDto <QuotationStatusList>(query.MapTo <List <QuotationStatusList> >()));
            }
        }