Ejemplo n.º 1
0
 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");
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }