public ActionResult <OutletReadDto> GetOutletById(int id)
        {
            var outlet = _outlet.GetOutletById(id);

            if (outlet != null)
            {
                return(Ok(_mapper.Map <OutletReadDto>(outlet)));
            }
            return(NotFound());
        }
예제 #2
0
        public ActionResult <OutletReadDtos> GetOutletById(int id)
        {
            //validation check
            var OutletItems = _repository.GetOutletById(id);

            if (OutletItems != null)
            {
                return(Ok(_mapper.Map <OutletReadDtos>(OutletItems)));
            }
            return(NotFound());
        }