Esempio n. 1
0
        public Migi.Framework.Models.ChangeResult SaveCustomer(CustomerSave customerToSave)
        {
            Migi.Framework.Models.ChangeResult result = new Migi.Framework.Models.ChangeResult();

            if (!_customerAccess.SaveCustomer(customerToSave.GetDataTable()))
            {
                result.AddErrorMessage("Could not save customer.");
            }

            return(result);
        }
        public Migi.Framework.Models.ChangeResult SaveCustomer(CustomerSave customerToSave)
        {
            Migi.Framework.Models.ChangeResult result = new Migi.Framework.Models.ChangeResult();

            if (!_customerAccess.SaveCustomer(customerToSave.GetDataTable()))
                result.AddErrorMessage("Could not save customer.");

            return result;
        }