public void PerformEOD() { if (!this.IsValidRequest()) { this.Clients.Caller.getNotification(Warnings.AccessIsDenied, Warnings.AccessIsDenied); return; } Data.EODOperation operation = new Data.EODOperation(); operation.NotificationReceived += this.EOD_NotificationReceived; string catalog = AppUsers.GetCurrentUserDB(); operation.Perform(catalog, AppUsers.GetCurrent().View.LoginId.ToLong()); }
public void PerformEOD() { if (this.Context == null) { this.Clients.Caller.getNotification(Warnings.AccessIsDenied); return; } long loginId = Conversion.TryCastLong(this.Context.User.Identity.Name); if (loginId <= 0) { this.Clients.Caller.getNotification(Warnings.AccessIsDenied); return; } Data.EODOperation operation = new Data.EODOperation(); operation.NotificationReceived += this.EOD_NotificationReceived; operation.Perform(loginId); }
public void PerformEOD() { if (this.Context == null) { this.Clients.Caller.getNotification(Warnings.AccessIsDenied); return; } long globalLoginId = Conversion.TryCastLong(this.Context.User.Identity.Name); if (globalLoginId <= 0) { this.Clients.Caller.getNotification(Warnings.AccessIsDenied); return; } Data.EODOperation operation = new Data.EODOperation(); operation.NotificationReceived += this.EOD_NotificationReceived; string catalog = AppUsers.GetCurrentUserDB(); operation.Perform(catalog, AppUsers.GetCurrentLogin().View.LoginId.ToLong()); }