Exemple #1
0
#pragma warning restore IDE1006 // Naming Styles


        /// <summary>
        /// this function will log a given action
        /// </summary>
        /// <param name="Action">the given action</param>
        public static LogActiuni LogAction(String Action)
        {
            logActiuni = new LogActiuni()
            {
                Actiune = Action
            };
            return(logActiuni);
        }
Exemple #2
0
 /// <summary>
 /// this function will log a given action to a specific user
 /// </summary>
 /// <param name="Action">the given action</param>
 /// <param name="User">the specific user</param>
 public static LogActiuni LogAction(String Action, User User)
 {
     logActiuni = new LogActiuni()
     {
         Actiune      = Action,
         UtilizatorId = User.ID
     };
     return(logActiuni);
 }
Exemple #3
0
 /// <summary>
 /// this function will log a given action to a specific IP Adress
 /// </summary>
 /// <param name="Action">the given action</param>
 /// <param name="IP">the ip adress</param>
 public static LogActiuni LogAction(String Action, String IP)
 {
     logActiuni = new LogActiuni()
     {
         Actiune   = Action,
         IpActiune = IP
     };
     return(logActiuni);
 }
Exemple #4
0
 /// <summary>
 /// this fucntion will log a given action to a specific user with the database command
 /// </summary>
 /// <param name="Action">the given action</param>
 /// <param name="User">the specific user</param>
 /// <param name="Command">the database command</param>
 public static LogActiuni LogAction(String Action, User User, String Command)
 {
     logActiuni = new LogActiuni()
     {
         Actiune      = Action,
         UtilizatorId = User.ID,
         Comanda      = Command
     };
     return(logActiuni);
 }
Exemple #5
0
 /// <summary>
 /// this function will log a given action to a specific IP Adress with the database command
 /// </summary>
 /// <param name="Action">the given action</param>
 /// <param name="IP">the ip adress</param>
 /// <param name="Command">the database command</param>
 public static LogActiuni LogAction(String Action, String IP, String Command)
 {
     logActiuni = new LogActiuni()
     {
         Actiune   = Action,
         IpActiune = IP,
         Comanda   = Command
     };
     return(logActiuni);
 }