public async Task <IActionResult> Edit(int id, [Bind("Id,Organization,Contragent,DataLoad,DataLoad1,Dataload2,Dataload3")] DocForPain docForPain)
        {
            if (id != docForPain.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(docForPain);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!DocForPainExists(docForPain.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(docForPain));
        }
        public async Task <IActionResult> Create([Bind("Id,Organization,Contragent,DataLoad,DataLoad1,Dataload2,Dataload3")] DocForPain docForPain)
        {
            if (ModelState.IsValid)
            {
                _context.Add(docForPain);
                await _context.SaveChangesAsync();

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