Esempio n. 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)));
        }