public ActionResult ProductAuthenticationInfo(long Id = 0L) { IProductAuthenticationService productService = ServiceHelper.Create <IProductAuthenticationService>(); ProductAuthentication productInfo = new ProductAuthentication(); string procode = ""; string proimg = ""; string comname = ""; string comatt = ""; if (Id != 0) { productInfo = productService.GetProductAuthenticationId(Id); if (productInfo != null) { procode = productInfo.ProductCode; proimg = productInfo.ProductIMG; comname = productInfo.ComName; comatt = productInfo.ComAttachment; } } ViewBag.ProductCode = procode; ViewBag.ProductIMG = proimg; ViewBag.ComName = comname; ViewBag.ComAtt = comatt; return(View(productInfo)); }