Example #1
0
        public ActionResult ProceduresAddComment(string comment, int procedureID, string position, string sqlText)
        {
            IGumruk iGumruk = new BSGumruk();
            int?    pos     = null;

            if (position != "")
            {
                pos = int.Parse(position);
            }

            SQLProceduresComments prosComment = new SQLProceduresComments()
            {
                created_at      = DateTime.Now,
                updated_at      = DateTime.Now,
                Details         = comment,
                userID          = GetCurrentUser().id,
                SQLProceduresID = procedureID,
                user            = GetCurrentUser(),
                position        = pos,
            };



            iGumruk.AddSQLProcedureComment(prosComment, pos, sqlText);

            return(PartialView("ProceduresCommentList", iGumruk.GetSQLProcedureComments(procedureID)));
        }
Example #2
0
        public ActionResult DeleteComment(int ID, int procedureID)
        {
            IGumruk iGumruk = new BSGumruk();

            iGumruk.deleteSQlProcedureComment(ID);

            return(PartialView("ProceduresCommentList", iGumruk.GetSQLProcedureComments(procedureID)));
        }
Example #3
0
        public ActionResult GetProceduresCommentsByID(int procedureID)
        {
            IGumruk iGumruk = new BSGumruk();

            return(PartialView("ProceduresCommentList", iGumruk.GetSQLProcedureComments(procedureID)));
        }