public ActionResult Complaint(Complaint complaint)
 {
     if (complaint != null)
     {
         complaint.Creator = db.Users.Find(Session["SystemUserID"]);
         db.Complaints.Add(complaint);
         db.SaveChanges();
     }
     return RedirectToAction("UserRoom");
 }
        public ActionResult CreateComplaint(Complaint complaint)
        {
            if (complaint != null)
            {
                complaint.IsHidden = false; //открываем проблему
                complaint.Creator = db.Users.Find(Session["SystemUserID"]);
                db.Complaints.Add(complaint);
                db.SaveChanges();
            }

            return RedirectToAction("Complaints");
        }