Пример #1
0
        public async Task <IHttpActionResult> ListAllTechies()
        {
            var result = await _techieBo.ListAllTechies();

            if (result != null)
            {
                return(Ok(TechiesViewModel.ToList(result)));
            }
            return(NotFound());
        }
Пример #2
0
        public async Task <IHttpActionResult> SugestTechie(string text)
        {
            var result = await _techieBo.SugestTechie(text);

            if (result != null)
            {
                return(Ok(TechiesViewModel.ToList(result)));
            }
            return(NotFound());
        }