Exemplo n.º 1
0
        public PartialViewResult GetByVendorId(string VendorId)
        {
            VendorModel VM = new VendorModel();

            VM = VendorBL.GetVendor();
            tbl_Vendor Vendor = VendorBL.GetByID(VendorId);

            if (Vendor != null)
            {
                VM.VendorID = Vendor.VendorID;
                VM.Name1    = Vendor.Name1;
                VM.Address1 = Vendor.Address1;
                VM.Address2 = Vendor.Address2;
                VM.Address3 = Vendor.Address3;
                VM.POBox    = Vendor.POBox;
                VM.City     = Vendor.City;
                VM.Region   = Vendor.Region;
                VM.Country  = Vendor.Country;
                VM.Contact  = Vendor.Contact;
                VM.Phone    = Vendor.Phone;
                VM.Fax      = Vendor.Fax;
            }
            else
            {
                Vendor = new tbl_Vendor();
            }
            return(PartialView("~/Views/Vendor/Partial/_VendorDetailsPartial.cshtml", VM));
        }