public IHttpActionResult ModifyCustomer([FromBody] Models.Contact.Customer customer)
        {
            var cs = new BLL.ContactManager();

            cs.ModifyCustomers(customer);
            return(Ok());
        }
        public Models.Contact.Customer GetCustomer(long CustomerId)
        {
            Models.Contact.Customer customer = new Models.Contact.Customer();

            var dalcustomer = crep.GetCustomer(CustomerId);

            customer = new Models.Contact.Customer()
            {
                Person = new Models.Common.Person()
                {
                    Id   = dalcustomer.CustomerId,
                    Name = new Models.Common.Name()
                    {
                        First = dalcustomer.FirstName,
                        Last  = dalcustomer.LastName
                    }
                },
                BirthDay = dalcustomer.BirthDay,
                Email    = dalcustomer.Email
            };

            return(customer);
        }
 public void ModifyCustomers(Models.Contact.Customer customer)
 {
     crep.ModifyCusotmer(customer.Person.Id, customer.Person.Name.First, customer.Person.Name.Last, customer.BirthDay, customer.Email);
 }
 public void AddCustomers(Models.Contact.Customer customer)
 {
     crep.InsertCustomer(customer.Person.Name.First, customer.Person.Name.Last, customer.BirthDay, customer.Email);
 }