public IReadOnlyCollection <DetailModel> GetAllByQuery(string query) { var details = Detail.IsPart_number(query) ? detailRepository.GetAllByPart_number(query) : detailRepository.GetAllByTitleOrCompany(query); return(details.Select(Map).ToArray()); }
public IReadOnlyCollection <DetailModel> GetAllByQuery(string query) { var details = Detail.IsPart_number(query) ? detailRepository.GetAllByPart_number(query) : detailRepository.GetAllByTitleOrCompany(query); return(details.Select(Map).ToArray()); }