public IActionResult GetProviderSelect() { IEnumerable <Provider> lista = pBS.GetProviderList(); return(Ok(lista.Select(e => new LabelAndValue <string>(e.Name, e.ProviderCategory.Code, e)).OrderBy(o => o.Label))); }
public IActionResult GetProviderSelect([FromQuery(Name = "ParentCategory")] string parentCategory) { IEnumerable <Provider> lista = pBS.GetProviderList(pagesize: 0); return(Ok(lista.Select(o => new LabelAndValue <string>(o.Name, o.VendorNo, o)).OrderBy(o => o.Label))); }