public ActionResult StockTakeCurrentProductSerialsPartial(int id, int stockTakeId) { var stockTakeSerialDetails = _stockTakeService.GetProductStockTakeSerials(stockTakeId, id); ViewBag.StockTakeCurrentProductSerials = stockTakeSerialDetails.Select(m => new { m.StockTakeDetailsSerialId, m.SerialNumber, m.DateScanned }).ToList(); return(PartialView("_StocktakeCurrentProductSerials")); }