public ActionResult Reject(int AppealID, int AdminID)
        {
            Appeal appeal = DataHelper.GetAppealsByID(AppealID);
            TrackingAppeal track = new TrackingAppeal();
            track.ActorID = AdminID;
            track.ReceiverID = AppealID;
            //senderType, receiverType:
            //user, mod, admin: 0
            // event: 1, report: 2, appeal: 3

            track.ActionTime = DateTime.Now;

            if (appeal != null)
            {
                appeal.AppealStatus = 2;
                // db.Entry(userChange).State = EntityState.Modified;
                track.ActionID = 4;
                DataHelper.AddTrackingAppeal(track);

            }
            DbSet<Appeal>listAppeal = DataHelper.GetAllAppeals();

            return View("ManageAppeals", listAppeal.ToList());
        }
 public static void AddTrackingAppeal(TrackingAppeal track)
 {
     db.TrackingAppeals.Add(track);
     db.SaveChanges();
 }