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