public async Task <IActionResult> GetBatchDetails(int id) { Log.Information($"Geting Batch Details for ID {id}"); try { BatchDetailsDto batch = await BatchService.GetBatchDetails(id); return(Ok(batch)); } catch (Exception ex) { Log.Error($"Error getting batch details for batch with ID \"{id}\"."); throw; } }