public ActionResult ProfilDuzenle()
        {
            BusinessLayerResult <KanBanKullanici> res = km.GetUserById(CurrentSession.kullanici.Id);

            if (res.Hata.Count > 0)
            {
                ErrorViewModel hata = new ErrorViewModel()
                {
                    Title = "Hata oluştu",
                    Items = res.Hata
                };

                return(View("Error", hata));
            }
            return(View(res.Result));
        }
        public ActionResult EditProfileK()
        {
            Kullanicilar kullanici = Session["logink"] as Kullanicilar;

            k = new KullaniciManager();
            BusinessLayerResult <Kullanicilar> res = k.GetUserById(kullanici.Id);

            if (res.Errors.Count > 0)
            {
                ErrorViewModel notifyonj = new ErrorViewModel()
                {
                    Title = "Hata Oluştu.",
                    Items = res.Errors
                };
                TempData["errors"] = res.Errors;
                return(View("Error", notifyonj));
            }

            return(View(res.Result));
        }