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