Exemplo n.º 1
0
        public static UM_GroupUser ToEntity(this GroupUserContract contract)
        {
            if (contract == null)
            {
                return(null);
            }

            var entity = new UM_GroupUser();

            entity.DateChanged = contract.DateChanged;
            entity.DateCreated = contract.DateCreated;
            entity.DateDeleted = contract.DateDeleted;
            entity.GroupID     = contract.GroupID;
            entity.ID          = contract.ID;
            entity.UserID      = contract.UserID;

            return(entity);
        }
Exemplo n.º 2
0
        public static GroupUserContract ToContract(this UM_GroupUser entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var contract = new GroupUserContract();

            contract.DateChanged = entity.DateChanged;
            contract.DateCreated = entity.DateCreated;
            contract.DateDeleted = entity.DateDeleted;
            contract.GroupID     = entity.GroupID;
            contract.ID          = entity.ID;
            contract.UserID      = entity.UserID;

            return(contract);
        }