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)); }