public async Task <IActionResult> Edit(int id, [Bind("DenialId,Date,GoldenHourNumber,ChiefComplaint,SendingFacility,ReceivingFacility,DenialReason")] Denials denials)
        {
            if (id != denials.DenialId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(denials);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!DenialsExists(denials.DenialId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(denials));
        }
        public async Task <IActionResult> Create([Bind("DenialId,Date,GoldenHourNumber,ChiefComplaint,SendingFacility,ReceivingFacility,DenialReason")] Denials denials)
        {
            if (ModelState.IsValid)
            {
                _context.Add(denials);
                await _context.SaveChangesAsync();

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