public async Task <IActionResult> GetAnyProductionSet(int userId) { if (userId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value)) { return(Unauthorized()); } IEnumerable <Production> directProductions = await _repo.GetAnyProduction(userId); var productionForReturn = _mapper.Map <IEnumerable <ProdForReturnDto> >(directProductions); return(Ok(productionForReturn)); }