Example #1
0
        public async Task <IActionResult> Get([FromRoute] string name)
        {
            var result = await appService.GetListByName(name);

            if (!result.Any())
            {
                return(NotFound());
            }

            return(Ok(result));
        }
 public async Task <IEnumerable <CompanyViewModel> > GetListByName(string name)
 {
     return(await appService.GetListByName(name));
 }
 public async Task <IActionResult> Get([FromRoute] string name)
 {
     return(Ok(await appService.GetListByName(name)));
 }