public async Task <IActionResult> Edit(int id, [Bind("Id,NameKyrg,NameRus,CreateDate")] DictMonumemtSignOfLoss dictMonumemtSignOfLoss)
        {
            if (id != dictMonumemtSignOfLoss.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(dictMonumemtSignOfLoss);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!DictMonumemtSignOfLossExists(dictMonumemtSignOfLoss.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(dictMonumemtSignOfLoss));
        }
        // GET: GlobalDicts/DictMonumemtSignOfLosses/Create
        public IActionResult Create()
        {
            DictMonumemtSignOfLoss model = new DictMonumemtSignOfLoss();

            model.CreateDate = DateTime.Now;
            model.NameKyrg   = "NULL";
            return(View(model));
        }
        public async Task <IActionResult> Create([Bind("Id,NameKyrg,NameRus,CreateDate")] DictMonumemtSignOfLoss dictMonumemtSignOfLoss)
        {
            if (ModelState.IsValid)
            {
                _context.Add(dictMonumemtSignOfLoss);
                await _context.SaveChangesAsync();

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