Ejemplo n.º 1
0
        public ActionResult TicketComments(int tktID)
        {
            CommentBAL cmntBAL = new CommentBAL();
            var        cmnts   = cmntBAL.TicketComments(tktID);

            return(Json(cmnts, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
 public EventDetailsView()
 {
     eventOperationBal = new EventsOperationBAL();
     commentBal        = new CommentBAL();
     eventBal          = new EventBAL();
     isComment         = false;
 }
Ejemplo n.º 3
0
        public ActionResult TicketComment(HelpDeskMVC.Models.TicketComment tc)
        {
            CommentBAL cmntBAL = new CommentBAL();

            HelpDeskEntities.Ticket.TicketComment cmnt = new HelpDeskEntities.Ticket.TicketComment();
            cmnt.Comment       = tc.Comment;
            cmnt.TicketID      = tc.TicketID;
            cmnt.CommentBy.UID = Convert.ToInt32(GenericClass.CsvToStringArray(User.Identity.Name)[2]);

            string msg = "";

            var flag = cmntBAL.PostComment(cmnt, out msg);

            return(Json(new { status = flag, Response = msg }, JsonRequestBehavior.AllowGet));
        }
 public AdminEditCommentView()
 {
     commentBal = new CommentBAL();
 }