public bool insertUser(string usName, string name, string branch, string imgPath)
        {
            try
            {
                userDetailsTB newUser = new userDetailsTB();

                newUser.userName     = usName;
                newUser.employeeName = name;
                newUser.branch       = branch;
                newUser.image        = imgPath;

                myCashDB.userDetailsTBs.InsertOnSubmit(newUser);
                myCashDB.SubmitChanges();

                return(true);
            }
            catch
            {
                return(false);
            }
        }
Пример #2
0
 partial void DeleteuserDetailsTB(userDetailsTB instance);
Пример #3
0
 partial void UpdateuserDetailsTB(userDetailsTB instance);
Пример #4
0
 partial void InsertuserDetailsTB(userDetailsTB instance);