Exemple #1
0
        public ActionResult GetCategories()
        {
            var result = _chuckService.RetrieveCategories();

            if (result.Count == 0)
            {
                return(NotFound());
            }
            return(Ok(result));
        }
        public ActionResult GetCategories()
        {
            _chuckService.RetrieveCategories();

            //if (!String.IsNullOrWhiteSpace(city))
            //{
            //    _chuckService.RetrieveCategories();

            //    if (result.Weather != null)
            //    {
            //        return Ok(result);
            //    }
            //    return NotFound();
            //}
            return(Ok());
        }