Example #1
0
        public void _galleryEdit(string baslik, int id)
        {
            var album = _albumRepo.FindbyId(id);

            album.Title = baslik;
            var res = _albumRepo.Update(album);

            if (res == Enum.EntityResult.Failed)
            {
                this.AddToastMessage("", "Album güncellenirken hata", Enum.ToastrType.Error);
            }
            else
            {
                this.AddToastMessage("", "Kayıt Başarılı", Enum.ToastrType.Success);
            }
        }