Example #1
0
        public virtual ApiDatabaseLogRequestModel MapResponseToRequest(
            ApiDatabaseLogResponseModel response)
        {
            var request = new ApiDatabaseLogRequestModel();

            request.SetProperties(
                response.DatabaseUser,
                response.@Event,
                response.@Object,
                response.PostTime,
                response.Schema,
                response.Tsql,
                response.XmlEvent);
            return(request);
        }
Example #2
0
        public virtual ApiDatabaseLogResponseModel MapRequestToResponse(
            int databaseLogID,
            ApiDatabaseLogRequestModel request)
        {
            var response = new ApiDatabaseLogResponseModel();

            response.SetProperties(databaseLogID,
                                   request.DatabaseUser,
                                   request.@Event,
                                   request.@Object,
                                   request.PostTime,
                                   request.Schema,
                                   request.Tsql,
                                   request.XmlEvent);
            return(response);
        }