예제 #1
0
        public async Task <IActionResult> Get([FromRoute] int festivalId)
        {
            var model = await _festivalService.GetFestivalById(festivalId);

            if (model == null)
            {
                return(NotFound());
            }


            return(Ok(model));
        }
        public async Task <ActionResult> GetFestivalById(int id)
        {
            var festival = await _service.GetFestivalById(id);

            return(Ok(festival));
        }