コード例 #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());
        }