public async Task <IActionResult> Edit(string id, [Bind("Id,Name,Administrator, Title,Created")] Blog blog)
        {
            string name = id;

            if (name != blog.Name)
            {
                return(NotFound());
            }

            // if (ModelState.IsValid)
            {
                try
                {
                    //_context.Update(blog);
                    //await _context.SaveChangesAsync();
                    blog.LastUpdate = DateTime.Now;
                    await this.blogmnger.EditBasicInfo(blog, name);;
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!await blogmnger.BlogExists(name))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }

            //return View(blog);
        }