Ejemplo n.º 1
0
        public static ReturnLogInformation DefineReturn(ReturnStatus ReturnType, String ReturnMessage, List <InformationLogs> ReturnValue)
        {
            ReturnLogInformation ThisReturn = new ReturnLogInformation();

            ThisReturn.ReturnType     = ReturnType;
            ThisReturn.ReturnMessage  = ReturnMessage;
            ThisReturn.ReturnDateTime = DateTime.UtcNow;
            ThisReturn.ReturnValue    = ReturnValue;

            return(ThisReturn);
        }
Ejemplo n.º 2
0
        public static ReturnLogInformation GetLogList()
        {
            List <InformationLogs> TempLogs = new List <InformationLogs>();

            for (int i = 0; i < TTCSTempLogInformation.Count; i++)
            {
                TempLogs.Add(TTCSTempLogInformation[i]);
            }

            TTCSTempLogInformation.Clear();
            return(ReturnLogInformation.DefineReturn(ReturnStatus.SUCESSFUL, null, TempLogs));
        }