public ActionResult Deletestaff(string button)
        {
            var userid = Session["userid"].ToString();

            using (Models.masterEntities1 db = new Models.masterEntities1())
            {
                var update = db.todolist.Where(x => x.staffid.ToString() == button).FirstOrDefault();
                update.statu = "1";
                db.SaveChanges();
                return(RedirectToAction("Todolist"));
            }
        }
 public ActionResult Addnewstaff(string addnewstaff)
 {
     Models.todolist todo = new Models.todolist
     {
         userid = Session["userid"].ToString(),
         staff  = addnewstaff,
         statu  = "0"
     };
     using (Models.masterEntities1 db = new Models.masterEntities1())
     {
         db.todolist.Add(todo);
         db.SaveChanges();
     }
     return(RedirectToAction("Todolist"));
 }