public static bool Insert(ProjectLog ProjectLog) { try { DB.ProjectLog.InsertOne(ProjectLog); return(true); } catch (Exception e) { throw new Exception("Erro Inserir ProjectLog" + e.ToString()); } }
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()); } }