Пример #1
0
        public void InsertWechatLoginEvent(WechatLoginEvent wechatLoginEvent)
        {
            if (wechatLoginEvent == null)
            {
                throw new ArgumentNullException("wechatLoginEvent is null");
            }

            _repository.Insert(wechatLoginEvent);
        }
Пример #2
0
        public void UpdateWechatLoginEvent(WechatLoginEvent wechatLoginEvent)
        {
            if (wechatLoginEvent == null)
            {
                throw new ArgumentNullException("wechatLoginEvent is null");
            }

            wechatLoginEvent.Token = Guid.NewGuid().ToString();
            _repository.Update(wechatLoginEvent);
        }
Пример #3
0
 public static WechatLoginEvent ToEntity(this WechatLoginEventModel createmodel, WechatLoginEvent destination)
 {
     return(createmodel.MapTo(destination));
 }
Пример #4
0
 public static WechatLoginEventModel ToModel(this WechatLoginEvent entity)
 {
     return(entity.MapTo <WechatLoginEvent, WechatLoginEventModel>());
 }
Пример #5
0
 public void DeleteWechatLoginEvent(WechatLoginEvent wechatLoginEvent)
 {
     throw new NotImplementedException();
 }