示例#1
0
        public BLM.RemoteCalendarAccess AddRemoteCalendarAccess(Guid calendarId, string siteAddress, string userId)
        {
            BLM.RemoteCalendarAccess remoteCalendarAccess = new BLM.RemoteCalendarAccess(calendarId, siteAddress, userId);
            
            RemoteCalendarAccessRepository repository = new RemoteCalendarAccessRepository();
            repository.CreateRemoteCalendarAccess(remoteCalendarAccess.ToDataModel<DLM.RemoteCalendarAccess>());

            return remoteCalendarAccess;
        }
示例#2
0
        public BLM.RemoteCalendarAccess UpdateLastAccessTime(BLM.RemoteCalendarAccess remoteCalendarAccess)
        {
            remoteCalendarAccess.LastAccess = DateTime.UtcNow;

            RemoteCalendarAccessRepository repository = new RemoteCalendarAccessRepository();
            remoteCalendarAccess = new BLM.RemoteCalendarAccess(repository.UpdateRemoteCalendarAccess(remoteCalendarAccess.ToDataModel<DLM.RemoteCalendarAccess>()));

            return remoteCalendarAccess;
        }
示例#3
0
 public BLM.RemoteCalendarAccess GetRemoteCalendarAccess(Guid Id)
 {
     RemoteCalendarAccessRepository repository = new RemoteCalendarAccessRepository();
     DLM.RemoteCalendarAccess remoteCalendarAccess = repository.GetRemoteCalendarAccessById(Id);
     if (remoteCalendarAccess == null)
         return null;
     else
         return new BLM.RemoteCalendarAccess(remoteCalendarAccess);
 }