#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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }