public VendorPO UpdateVendorPO(VendorPO _VendorPO)
        {
            VendorPOManager _VendorPOManager = new VendorPOManager();

            _VendorPOManager.UpdateVendorPO(_VendorPO);
            EmailManager _emailmanager = new EmailManager();

            string emailfrom = ContextInfo.Current.LoggedInUser.Email;
            string emailto   = ConfigManager.Current.SMTPFrom;

            _emailmanager.SendGenericEmail(emailfrom, emailto, "Welcone", "a new PO has been create");


            return(_VendorPO);
        }
        public VendorPO UpdatePOSendToVendor(VendorPO _VendorPO)
        {
            VendorPOManager _VendorPOManager = new VendorPOManager();

            _VendorPOManager.UpdateVendorPO(_VendorPO);
            EmailManager _emailmanager = new EmailManager();

            string emailfrom = ConfigManager.Current.SMTPFrom;
            string emailto   = _VendorPO.VendorEmail;


            _emailmanager.SendGenericEmail(emailto, emailfrom, "Welcone", "a new PO has been create");


            return(_VendorPO);
        }