Beispiel #1
0
        public string ActivateCustomer(string customerId)
        {
            int id = 0;

            Int32.TryParse(customerId, out id);
            string nextBillDate = CustomersManager.ActivateCustomer(id);

            return(nextBillDate);
        }
Beispiel #2
0
        public bool EnabledDisabledCustomer(CustomerEnabled model)
        {
            if (ModelState.IsValid && model.IdCustomer > 0)
            {
                bool correctProcess = false;
                try
                {
                    CustomersManager.ActivateCustomer(model.IdCustomer);
                    correctProcess = true;
                }
                catch { }

                return(correctProcess);
            }

            return(false);
        }