public ActionResult ReplyFeedback(int Id_Feed, FormCollection f)
 {
     ReplyFeedback rf = new ReplyFeedback();
     rf.Id_Feedback = Id_Feed;
     rf.Content = f.Get("txtRepFeed").ToString();
     rf.Date = DateTime.Now;
     db.ReplyFeedbacks.Add(rf);
     db.SaveChanges();
     return RedirectToAction("ManagingFeedback", "Admin");
 }
Exemple #2
0
        //kiểm tra đã trả lời chưa?
        public string IsReplyFeedback(int Id_Feed)
        {
            ReplyFeedback rfb = db.ReplyFeedbacks.SingleOrDefault(n => n.Id_Feedback == Id_Feed);

            if (rfb == null)
            {
                return("Chưa trả lời");
            }
            return("Đã trả lời");
        }