public int AddCustomer(Customer customer)
        {
            try
            {
                var dbcustomer = new DbCustomer
                {
                    cart_id = customer.CartId,
                    email = customer.Email,
                    firstname = customer.Firstname,
                    lastname = customer.Lastname,
                    password = customer.Password,
                    salt = customer.Salt,
                    status = customer.Status,
                    token = customer.Token,
                    telephone = customer.Telephone,
                    date_added = DateTime.Now
                };

                dbcustomer = _dbEntities.Customers.Add(dbcustomer);
                _dbEntities.SaveChanges();

                return dbcustomer.customer_id;
            }
            catch (Exception)
            {
                throw;
            }
        }
 public void UpdateCustomer(Customer customer)
 {
     throw new NotImplementedException();
 }