/// <summary>
        /// Create User when the "Create user" button is pressed in register form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void CreateUserButton_Click(object sender, EventArgs e)
        {
            bool exists=true;
            string numeUtilizator = UserName.Text;
            string numeComplet = FullName.Text;
            string email = Email.Text;
            string password = Password.Text;
            MasterWebServiceSoapClient client = new MasterWebServiceSoapClient();
            bool succeded = client.AddUser(out exists,numeUtilizator, password, email, numeComplet, string.Empty, true, (object)string.Empty);
            if (exists == true)
            {
                userAlreadyregister.Visible = true;
                userAlreadyregister.Text = "This username is already taken. Try a new one!";
                userAlreadyregister.ForeColor = System.Drawing.Color.Red;
            }

            else
            {
                if (succeded)
                {
                    var idUtilizator = UtilizatorRepository.GetUtilizatori().First(x => x.numeUtilizator == numeUtilizator).idUtilizator;
                    var idRol =RolRepository.GetRoluri().First(x => x.numeRol == "userLogat").idRol;
                    RolRepository.EditRolforUser(idUtilizator, new List<int> { idRol });
                    FormsAuthentication.RedirectFromLoginPage(numeUtilizator, true);
                }
            }
        }
        /// <summary>
        /// Create User when the "Create user" button is pressed in register form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void CreateUserButton_Click(object sender, EventArgs e)
        {
            bool exists=true;
            string numeUtilizator = UserName.Text;
            string numeComplet = FullName.Text;
            string email = Email.Text;
            string password = Password.Text;
            MasterWebServiceSoapClient client = new MasterWebServiceSoapClient();
            bool succeded = client.AddUser(out exists,numeUtilizator, password, email, numeComplet, string.Empty, true, (object)string.Empty);
            if (exists == true)
            {
                userAlreadyregister.Visible = true;
                userAlreadyregister.Text = "This username is already taken. Try a new one!";
                userAlreadyregister.ForeColor = System.Drawing.Color.Red;
            }

            else
            {
                if (succeded)
                {
                    FormsAuthentication.RedirectFromLoginPage(numeUtilizator, true);
                }
            }
        }