Пример #1
0
        public bool Insert_Customer(CustomerEntity customer)
        {
            if (dbContext == null)
            {
                dbContext = new FoodDeliveryEntities();
            }
            bool isInsert = false;
            int  insert   = dbContext.INSERT_CUSTOMER_TOSQL(customer.FullName, customer.Address, customer.Mobile, customer.UserName, customer.Password, customer.Email, customer.Avatar, customer.UserType);

            if (insert > 0)
            {
                isInsert = true;
            }
            return(isInsert);
        }