コード例 #1
0
        public static int Delete(Customers Customer)
        {
            dCustomer _dCustomer = new dCustomer();

            if (Convert.ToBoolean(ConfigurationSettings.AppSettings["IsEmailEnable"]))
            {
                string mailBody = MailHelper.ActivityMail("Sub Customer", "Customer Deletion done on " + Customer.Customers_EmailId +
                                                          "( " + Customer.Customer_Id + "  and " + Customer.CustomerCode + " ) successfully.",
                                                          1, DateTime.Now.ToString());

                MailHelper.SendEmail(MailHelper.EmailToSend(), "Customer Deletion ", mailBody, "Rachna Teracotta : Activity Admin");
            }
            return(_dCustomer.Delete(Customer));
        }
コード例 #2
0
        public static CustomerAddress CreateAddress(CustomerAddress CustomerAddress)
        {
            dCustomer _dCustomer = new dCustomer();

            CustomerAddress = _dCustomer.CreateAddress(CustomerAddress);
            if (Convert.ToBoolean(ConfigurationSettings.AppSettings["IsEmailEnable"]))
            {
                string mailBody = MailHelper.ActivityMail("Customer", "New Customer Address Creation " + CustomerAddress.Customer_AddressLine1 + CustomerAddress.Customer_AddressLine2 +
                                                          "( " + CustomerAddress.CustomerAddress_Id + "  and " + CustomerAddress.CustomerAddress_Code + " ) done successfully.",
                                                          1, DateTime.Now.ToString());


                MailHelper.SendEmail(MailHelper.EmailToSend(), "New Customer Address Created", mailBody, "Rachna Teracotta : Activity Admin");
            }
            return(CustomerAddress);
        }
コード例 #3
0
 public bCustomer()
 {
     dCus = new dCustomer();
 }
コード例 #4
0
        public static List <CustomerAddress> ListAddress()
        {
            dCustomer _dCustomer = new dCustomer();

            return(_dCustomer.ListAddress());
        }
コード例 #5
0
        public static List <Customers> List()
        {
            dCustomer _dCustomer = new dCustomer();

            return(_dCustomer.List());
        }