public async Task <IActionResult> Edit(int id, [Bind("Id,Image,Composer,Description,Date,IsDeleted,TimeDeleted")] LatestFromBlog latestFromBlog)
        {
            if (id != latestFromBlog.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(latestFromBlog);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!LatestFromBlogExists(latestFromBlog.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(latestFromBlog));
        }
        public async Task <IActionResult> Create([Bind("Id,Image,Composer,Description,Date,IsDeleted,TimeDeleted")] LatestFromBlog latestFromBlog)
        {
            if (ModelState.IsValid)
            {
                _context.Add(latestFromBlog);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(latestFromBlog));
        }