public void InsertWechatLoginEvent(WechatLoginEvent wechatLoginEvent) { if (wechatLoginEvent == null) { throw new ArgumentNullException("wechatLoginEvent is null"); } _repository.Insert(wechatLoginEvent); }
public void UpdateWechatLoginEvent(WechatLoginEvent wechatLoginEvent) { if (wechatLoginEvent == null) { throw new ArgumentNullException("wechatLoginEvent is null"); } wechatLoginEvent.Token = Guid.NewGuid().ToString(); _repository.Update(wechatLoginEvent); }
public static WechatLoginEvent ToEntity(this WechatLoginEventModel createmodel, WechatLoginEvent destination) { return(createmodel.MapTo(destination)); }
public static WechatLoginEventModel ToModel(this WechatLoginEvent entity) { return(entity.MapTo <WechatLoginEvent, WechatLoginEventModel>()); }
public void DeleteWechatLoginEvent(WechatLoginEvent wechatLoginEvent) { throw new NotImplementedException(); }