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