public static void Delete(User user) { _Logger.Info("Method Start"); try { LogHelper.LogMaker(user); MySQL_User.Delete(user); } catch (Exception exception) { _Logger.Error(exception.Message, exception); throw exception; } _Logger.Info("Method End"); }
public static List <User> Retrieve() { _Logger.Info("Method Start"); List <User> UsersList; try { UsersList = MySQL_User.Retrieve(); LogHelper.LogMaker(UsersList); } catch (Exception exception) { _Logger.Error(exception.Message, exception); throw exception; } _Logger.Info("Method End"); return(UsersList); }
public static User RetrieveUser(User user) { _Logger.Info("Method Start"); User UserData; try { LogHelper.LogMaker(user); UserData = MySQL_User.RetrieveUser(user); LogHelper.LogMaker(UserData); } catch (Exception exception) { _Logger.Error(exception.Message, exception); throw exception; } _Logger.Info("Method End"); return(UserData); }