예제 #1
0
        public async Task <IActionResult> GetPictures(string id)
        {
            var inspectionM = await _repo.GetInspectionM(id);

            var inspectionMToReturn = _mapper.Map <InspectionForListDto>(inspectionM);

            var pictures = await _repo.GetInspectionPictures(id);

            //return Ok(pictures);

            return(Ok(new
            {
                inspectionMToReturn,
                pictures
            }));
        }