示例#1
0
        public async Task <IActionResult> GetLabel(int id)
        {
            var labelfromRepo = await _repo.GetLabel(id);

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

            var label = _mapper.Map <LabelForListDto>(labelfromRepo);

            return(Ok(label));
        }