Example #1
0
        public bool Insert(AccountObject ob)
        {
            if (GetAll().Find(q => q.Username.Trim().ToLower() == ob.Username) != null)
            {
                return(false);
            }
            var db = new eTrainingScheduleEntities();

            return(db.sp_tbl_Account_INSERT(ob.UserId, ob.FullName, ob.PassWord, ob.Username, ob.Email, ob.Phone, ob.Description, ob.Isdeleted, ob.RoleId) > 0);
        }
Example #2
0
        public bool Insert(AccountObject ob)
        {
            var db = new eTrainingScheduleEntities();

            return(db.sp_tbl_Account_INSERT(ob.UserId, ob.FullName, ob.PassWord, ob.Username, ob.Email, ob.Phone, ob.Description, ob.Isdeleted, ob.RoleId) > 0);
        }