public void Handle()
        {
            DataModel.Session session = AutoMapper.Mapper.Map <DataModel.Session>(_query.Session);
            session.SysUpdateTime       = DateTimeOffset.Now;
            session.SysUpdateAccountUID = Guid.NewGuid();

            OrgManUnitOfWork uow = new OrgManUnitOfWork();

            uow.SessionRepository.Update(_query.MandatorUIDs, session);

            uow.Commit();
        }
        public Guid Handle()
        {
            DataModel.Session session = Mapper.Map <DataModel.Session>(_query.Session);

            session.UID                 = Guid.NewGuid();
            session.SysInsertTime       = DateTimeOffset.Now;
            session.SysInsertAccountUID = Guid.NewGuid();

            OrgManUnitOfWork uow = new OrgManUnitOfWork();

            uow.SessionRepository.Insert(session);
            uow.Commit();
            return(session.UID);
        }