db.className.Update(model); does not work and does not update database

I try to update my database but it does not work. I have an action to add and edit my database rows. The adding works but update does not work. I used the db.update() and db.saveChanges to edit the database rows but it does not work. I will show my model, view and controller in below. Sorry if I am an amateur. Please tell me what I should do. Thank you all.

This is my model:

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WarOfWords.Models
{
    public class storyMode
    {
        [Key]
        public int ID { get; set; }
        [Required]
        public bool isOpen { get; set; }
        [Required]
        public String StoryImage { get; set; }
        [Required]
        public String StroyName { get; set; }
        [Required]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public String StoryDecription { get; set; }
    }
}

and this is my form in view:

@model WarOfWords.Models.storyMode
@using WarOfWords.PublicModel
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, WarOfWords
@{
    ViewData["Title"] = "Index";
    Layout = "~/Views/Shared/_panel.cshtml";
}
@Html.AntiForgeryToken()
<form asp-controller="story" asp-action="AddEditStory" method="post" role="form">
    <div class="modal-body form-horizontal">
        <div class="row">
            <div class="form-group myFormGroup hidden">
                <label asp-for="ID" class="col-lg-3 col-sm-3 control-label formLabel"></label>
                <div class="col-lg-6 myInputContainer">
                    <input asp-for="ID" class="form-control formInput" />
                </div>
            </div>
            <div class="form-group myFormGroup">
                <label asp-for="StroyName" class="col-lg-3 col-sm-3 control-label formLabel"></label>
                <div class="col-lg-6 myInputContainer">
                    <input asp-for="StroyName" class="form-control formInput" />
                </div>
            </div>

            <div class="form-group myFormGroup">
                <label asp-for="isOpen" class="col-lg-3 col-sm-3 control-label formLabel"></label>
                <div class="col-lg-6 myInputContainer">
                    <input asp-for="isOpen" class="form-control formInput" />
                </div>
            </div>

            <div class="form-group myFormGroup">
                <label asp-for="StoryImage" class="col-lg-3 col-sm-3 control-label formLabel"></label>
                <div class="col-lg-6 myInputContainer">
                    <input type="file" asp-for="StoryImage" class="form-control formInput" />
                </div>
            </div>

            <div class="form-group myFormGroup">
                <label asp-for="StoryDecription" class="col-lg-3 col-sm-3 control-label formLabel"></label>
                <div class="col-lg-6 myInputContainer">
                    <input asp-for="StoryDecription" class="form-control formInput" />
                    @*<textarea id="editor1" name="editor1" asp-for="StoryDecription" class="form-control  "></textarea>*@
                </div>
            </div>
        </div>
    </div>
</form>

and this is my action in controller:

[HttpPost]
[ValidateAntiForgeryToken]
public IActionResult AddEditStory(storyMode model, int ID)
{
    if (ModelState.IsValid)
    {
        //if true   
        if (ID == 0)
        {
            //insert
            using (var db = _serviceProvider.GetRequiredService<ApplicationDbContext>())
            {
                db.storymodes.Add(model);
                db.SaveChanges();
            }

            return RedirectToAction("Index");
        }
        else
        {
            //update
            using (var db = _serviceProvider.GetRequiredService<ApplicationDbContext>())
            {
                db.storymodes.Update(model);
                db.SaveChanges();
            }

            return RedirectToAction("Index");
        }
    }
    else
    {
        return PartialView("_AddEditStory", model);
    }
}