Example #1
0
        public int Add(User u1)
        {
            List <SqlParameter> parms = new List <SqlParameter>();

            parms.Add(new SqlParameter("@FullName", u1.FullName));
            parms.Add(new SqlParameter("@Email", u1.Email));
            parms.Add(new SqlParameter("@BirthDay", u1.Birthday));
            parms.Add(new SqlParameter("@Gender", u1.Gender));
            parms.Add(new SqlParameter("@Phone", u1.Phone));
            return(dbCon.DoQuery("AddUser", System.Data.CommandType.StoredProcedure, parms));
        }