public async Task <IActionResult> Edit(int id, [Bind("QuarterId,QuarterName,ManagerSignature,EntryDate,LastUpdatedDate")] FoodQuarter foodQuarter)
        {
            if (id != foodQuarter.QuarterId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    foodQuarter.LastUpdatedDate = DateTime.Now;
                    _context.Update(foodQuarter);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!FoodQuarterExists(foodQuarter.QuarterId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(foodQuarter));
        }
        public async Task <IActionResult> Create([Bind("QuarterId,QuarterName,ManagerSignature,EntryDate,LastUpdatedDate")] FoodQuarter foodQuarter)
        {
            if (ModelState.IsValid)
            {
                foodQuarter.EntryDate = DateTime.Now;
                _context.Add(foodQuarter);
                await _context.SaveChangesAsync();

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