Exemple #1
0
        public bool Update_Customer(CustomerEntity customer)
        {
            if (dbContext == null)
            {
                dbContext = new FoodDeliveryEntities();
            }
            bool isUpdate = false;
            int  update   = dbContext.UPDATE_CUSTOMER_TOSQL(customer.UserName, customer.FullName, customer.Address, customer.Mobile, customer.UserType, customer.Password, customer.Email, customer.Avatar);

            if (update > 0)
            {
                isUpdate = true;
            }
            return(isUpdate);
        }