public async Task <ActionResult> DeleteSllide(int id)
        {
            SLLIDE slide = await db.SLLIDEs.FindAsync(id);

            DeleteSlideViewModel model = new DeleteSlideViewModel();

            model.id = slide.ID;
            return(View(model));
        }
        public async Task <ActionResult> DeleteChosenSlide_POST(DeleteSlideViewModel model)
        {
            MessageJS returnmodel = new MessageJS();
            var       SlideID     = await db.SLLIDEs.FindAsync(model.id);

            try
            {
                db.SLLIDEs.Remove(SlideID);
                await db.SaveChangesAsync();

                returnmodel.Status  = true;
                returnmodel.Message = "Sllide u fshi nga kontrata";
                returnmodel.ID      = model.id;
                return(Json(new { result = "Redirect", url = Url.Action("Index", "SLIDE") }));
            }
            catch (Exception)
            {
                returnmodel.Status  = false;
                returnmodel.Message = "Ka ndodhur nje gabim";
            }
            return(Json(new { result = "Redirect", url = Url.Action("Index", "SLIDE") }));
        }