public ActionResult RegisterUser(string UserName, string Email, string sifre1, string sifre2)
        {
            if (Session["Login"] != null)
            {
                return(RedirectToAction("Index", "Home"));
            }

            else
            {
                if (string.IsNullOrEmpty(UserName) && string.IsNullOrEmpty(Email) && string.IsNullOrEmpty(sifre1) && string.IsNullOrEmpty(sifre2))
                {
                    ViewBag.sifrehata = "Eksik bilgiler var";
                    return(View());
                }
                else
                {
                    if (userManagement.AddUserEmailControl(Email) == null)

                    {
                        if (userManagement.AddUserUserNameControl(UserName) == null)
                        {
                            if (sifre1 == sifre2)
                            {
                                if (sifre1.Length < 8)
                                {
                                    ViewBag.sifrehata = "Şifreniz 8 Karakterden Kısa Olamaz";
                                    return(View());
                                }
                                else
                                {
                                    userManagement.AddUser(UserName, sifre1, Email);
                                    userManagement.EmailWelcomeSend(Email, UserName);
                                }
                            }

                            else
                            {
                                ViewBag.sifrehata = "Şifreniz Hatalı";
                                return(View());
                            }
                        }

                        else
                        {
                            ViewBag.sifrehata = "Kullanıcı Adı Kullanımda";
                            return(View());
                        }
                    }
                    else
                    {
                        ViewBag.sifrehata = "Mail Adresi Kullanımda";
                        return(View());
                    }

                    return(RedirectToAction("LoginUser", "Home"));
                }
            }
        }