public async Task <IActionResult> Edit(short id, [Bind("BLGeneralID,UCID,SchoolID,SchoolType,ClusterBEMISCode,BEMISCode,SName,Type,Latitude,Longitude,VisitorName,Date,varified,VarifiedBy,Remarks")] BaselineGeneral baselineGeneral)
        {
            if (id != baselineGeneral.BLGeneralID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(baselineGeneral);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!BaselineGeneralExists(baselineGeneral.BLGeneralID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["SchoolID"] = new SelectList(_context.Schools, "SchoolID", "SName", baselineGeneral.SchoolID);
            return(View(baselineGeneral));
        }
        public async Task <IActionResult> Create([Bind("BLGeneralID,UCID,SchoolID,SchoolType,ClusterBEMISCode,BEMISCode,SName,Type,Latitude,Longitude,VisitorName,Date,varified,VarifiedBy,Remarks")] BaselineGeneral baselineGeneral)
        {
            if (ModelState.IsValid)
            {
                _context.Add(baselineGeneral);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["SchoolID"] = new SelectList(_context.Schools, "SchoolID", "SName", baselineGeneral.SchoolID);
            return(View(baselineGeneral));
        }