Beispiel #1
0
        public async Task Create()
        {
            var entity = this as ICreationAudited;

            entity.Id = UtilHelper.GetGUID();
            var loginInfo = await OperatorProviderHelper.Provider.GetCurrent();

            if (loginInfo != null)
            {
                entity.CreatorUserId = loginInfo.UserId;
            }
            entity.CreatorTime = DateTime.Now;
        }