示例#1
0
        public static bool Insert(ProjectLog ProjectLog)
        {
            try
            {
                DB.ProjectLog.InsertOne(ProjectLog);

                return(true);
            }
            catch (Exception e)
            {
                throw new Exception("Erro Inserir ProjectLog" + e.ToString());
            }
        }
示例#2
0
        public static bool Insert(string ProjectId, string Username, DateTime Date, string Action)
        {
            try
            {
                ProjectLog newuser = new ProjectLog(ProjectId, Username, Date, Action);
                DB.ProjectLog.InsertOne(newuser);

                return(true);
            }
            catch (Exception e)
            {
                throw new Exception("Erro Inserir ProjectLog" + e.ToString());
            }
        }