public int UpUser(Task task)
        {
            DateLoginTask db = new DateLoginTask();

            db.Entry(task).State = System.Data.Entity.EntityState.Modified;
            return(db.SaveChanges());
        }
        public int AddUser(Task task)
        {
            DateLoginTask db = new DateLoginTask();

            db.Task.Add(task);
            return(db.SaveChanges());
        }
        public int DelUser(int id)
        {
            DateLoginTask db  = new DateLoginTask();
            var           num = db.Task.Where(x => x.TaskID == id);

            db.Task.Remove(num.ToList()[0]);
            return(db.SaveChanges());
        }