public async Task <IActionResult> Edit(int id, [Bind("ConnectRecordId,EnteringDate,MorningStaff,NigthStaff,BillCount,HouseCash,OtherCash,CardCount,EnteringStaff,Branch,Note")] BrhConnectRecord brhConnectRecord)
        {
            if (id != brhConnectRecord.ConnectRecordId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    brhConnectRecord.EnteringDate = TimeZoneInfo.ConvertTime(DateTime.Now, TimeZoneInfo.FindSystemTimeZoneById("China Standard Time"));
                    _context.Update(brhConnectRecord);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!BrhConnectRecordExists(brhConnectRecord.ConnectRecordId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(PartialView("~/Areas/Branch/Views/BrhConnectRecord/CreateEdit.cshtml", brhConnectRecord));
        }
        public async Task <IActionResult> Create([Bind("ConnectRecordId,EnteringDate,MorningStaff,NigthStaff,BillCount,HouseCash,OtherCash,CardCount,EnteringStaff,Branch,Note")] BrhConnectRecord brhConnectRecord)
        {
            if (ModelState.IsValid)
            {
                brhConnectRecord.EnteringDate = TimeZoneInfo.ConvertTime(DateTime.Now, TimeZoneInfo.FindSystemTimeZoneById("China Standard Time"));
                _context.Add(brhConnectRecord);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(PartialView("~/Areas/Branch/Views/BrhConnectRecord/CreateEdit.cshtml", brhConnectRecord));
        }