public async Task <ActionResult> DeleteConfirmed(int id)
        {
            MorningAttendence morningAttendence = await db.MorningAttendeces.FindAsync(id);

            db.MorningAttendeces.Remove(morningAttendence);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Aid,Date,Rollno,Reading,Speaking,Role,Timing,franchid")] MorningAttendence morningAttendence)
        {
            if (ModelState.IsValid)
            {
                db.Entry(morningAttendence).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(morningAttendence));
        }
        public async Task <ActionResult> Create([Bind(Include = "Aid,Date,Rollno,Reading,Speaking,Role,Timing,franchid")] MorningAttendence morningAttendence)
        {
            if (ModelState.IsValid)
            {
                db.MorningAttendeces.Add(morningAttendence);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(morningAttendence));
        }
        // GET: Auth/MorningAttendences/Delete/5
        public async Task <ActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MorningAttendence morningAttendence = await db.MorningAttendeces.FindAsync(id);

            if (morningAttendence == null)
            {
                return(HttpNotFound());
            }
            return(View(morningAttendence));
        }