public ActionResult ChargeReport(long id) { try { var user = (ViewUser)Session["user"]; var actionModel = _iCommonManager.GetActionListModelByAreaControllerActionName("Services", "WarrantyBattery", "ChargeReport"); var product = _iServiceManager.GetReceivedServiceProductById(id); DischargeReportModel dischargeReportModel = _iServiceManager.GetDisChargeReprortByReceiveId(id); product.ProductHistory = _iInventoryManager.GetProductHistoryByBarcode(product.Barcode) ?? new ViewProductHistory(); product.ForwardToModels = _iCommonManager .GetAllForwardToModelsByUserAndActionId(user.UserId, actionModel.Id).ToList(); product.DischargeReportModel = dischargeReportModel; return(View(product)); } catch (Exception exception) { Log.WriteErrorLog(exception); return(PartialView("_ErrorPartial", exception)); } }