public async Task <ActionResult> DeleteConfirmed(string id)
        {
            PhuTrach phuTrach = await db.PhuTrachs.FindAsync(id);

            db.PhuTrachs.Remove(phuTrach);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "MaNhanVien,SoCa,SoBan")] PhuTrach phuTrach)
        {
            if (ModelState.IsValid)
            {
                db.Entry(phuTrach).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(phuTrach));
        }
        public async Task <ActionResult> Create([Bind(Include = "MaNhanVien,SoCa,SoBan")] PhuTrach phuTrach)
        {
            if (ModelState.IsValid)
            {
                db.PhuTrachs.Add(phuTrach);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(phuTrach));
        }
        // GET: PhuTraches/Delete/5
        public async Task <ActionResult> Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PhuTrach phuTrach = await db.PhuTrachs.FindAsync(id);

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