Example #1
0
        public int Edit2(Ecommers.Entity.Users users)
        {
            if (users.Fullname.Length == 0)
            {
                return(0);
            }
            else if (users.Username.Length == 0)
            {
                return(0);
            }
            else if (users.Password.Length == 0)
            {
                return(0);
            }
            else if (users.Phone.Length == 0)
            {
                return(0);
            }
            else if (users.Address.Length == 0)
            {
                return(0);
            }
            else if (users.Email.Length == 0)
            {
                return(0);
            }

            else
            {
                return(DAL.Edit2(users));
            }
        }
Example #2
0
 public int Rmovet(Ecommers.Entity.Users user)
 {
     if (user.UserID == 0)
     {
         return(0);
     }
     else
     {
         return(DAL.Remove(user));
     }
 }
Example #3
0
 public int Edit(Ecommers.Entity.Users user)
 {
     if (CheckData(user) == 0)
     {
         return(0);
     }
     else
     {
         return(DAL.Edit(user));
     }
 }