Exemplo n.º 1
0
        public bool UserRegistration(DataContracts.UserDetails userDetails)
        {
            StoredProcedureDataContext dbmlObject = new StoredProcedureDataContext();

            dbmlObject.InsertUserDetails(userDetails.CompanyId, userDetails.FirstName, userDetails.LastName, userDetails.UserEmail, userDetails.IsOwner, userDetails.EncryptedPassword);
            dbmlObject.SubmitChanges();
            return true;
        }
Exemplo n.º 2
0
        public bool UserRegistration(DataContracts.UserDetails userDetails)
        {
            StoredProcedureDataContext dbmlObject = new StoredProcedureDataContext();

            dbmlObject.InsertUserDetails(userDetails.CompanyId, userDetails.FirstName, userDetails.LastName, userDetails.UserEmail, userDetails.IsOwner, userDetails.EncryptedPassword);
            dbmlObject.SubmitChanges();
            return(true);
        }