Ejemplo n.º 1
0
        public PartialViewResult _EditPartial(int id)
        {
            try
            {
                PurchaseReturnViewModels model = new PurchaseReturnViewModels();
                model.PurchaseReturn          = purchasereturnrepository.FindOneReturnById(id);
                model.PurchaseReturnitemsList = purchasereturnrepository.FindOneReturnItemById(id);
                model.BranchList          = purchasereturnrepository.GetBranchList().ToList();
                model.BusinessPartnerList = purchasereturnrepository.GetBusinessPartnerList().ToList();
                model.ProductList         = purchasereturnrepository.GetProductList();
                model.VATList             = purchasereturnrepository.GetVAT();


                return(PartialView(model));
            }
            catch (Exception ex)
            {
                ExceptionHandler.LogException(ex);
                ViewBag.AppErrorMessage = ex.Message;
                return(PartialView("Error"));
            }
        }