예제 #1
0
        public IActionResult Get(long id)
        {
            var model = cinemaService.GetById(id);
            var obj   = mapper.Map <CinemaResource>(model);

            if (obj == null)
            {
                return(NotFound());
            }
            return(new ObjectResult(obj));
        }