public virtual ApiEventResponseModel MapBOToModel(
            BOEvent boEvent)
        {
            var model = new ApiEventResponseModel();

            model.SetProperties(boEvent.Id, boEvent.AutoId, boEvent.Category, boEvent.EnvironmentId, boEvent.JSON, boEvent.Message, boEvent.Occurred, boEvent.ProjectId, boEvent.RelatedDocumentIds, boEvent.TenantId, boEvent.UserId, boEvent.Username);

            return(model);
        }
        public virtual BOEvent MapEFToBO(
            Event ef)
        {
            var bo = new BOEvent();

            bo.SetProperties(
                ef.Id,
                ef.AutoId,
                ef.Category,
                ef.EnvironmentId,
                ef.JSON,
                ef.Message,
                ef.Occurred,
                ef.ProjectId,
                ef.RelatedDocumentIds,
                ef.TenantId,
                ef.UserId,
                ef.Username);
            return(bo);
        }
        public virtual Event MapBOToEF(
            BOEvent bo)
        {
            Event efEvent = new Event();

            efEvent.SetProperties(
                bo.AutoId,
                bo.Category,
                bo.EnvironmentId,
                bo.Id,
                bo.JSON,
                bo.Message,
                bo.Occurred,
                bo.ProjectId,
                bo.RelatedDocumentIds,
                bo.TenantId,
                bo.UserId,
                bo.Username);
            return(efEvent);
        }
        public virtual BOEvent MapModelToBO(
            string id,
            ApiEventRequestModel model
            )
        {
            BOEvent boEvent = new BOEvent();

            boEvent.SetProperties(
                id,
                model.AutoId,
                model.Category,
                model.EnvironmentId,
                model.JSON,
                model.Message,
                model.Occurred,
                model.ProjectId,
                model.RelatedDocumentIds,
                model.TenantId,
                model.UserId,
                model.Username);
            return(boEvent);
        }