예제 #1
0
        private Send SendReminders(string type, SendReminderBase sendReminders)
        {
            this.RequiresAuthentication();
              this.RequiresClaims(new[] { "admin" });

              var postRemindersSend = Task.New<PostRemindersSend>();
              postRemindersSend.In.ReminderTypeName = type;
              postRemindersSend.In.Send = this.Bind<Send>();
              postRemindersSend.In.SendReminders = sendReminders;
              postRemindersSend.Execute();

              return postRemindersSend.Out.Send;
        }
예제 #2
0
        private Send SendReminders(string type, SendReminderBase sendReminders)
        {
            this.RequiresAuthentication();
            this.RequiresClaims(new[] { "admin" });

            var postRemindersSend = Task.New <PostRemindersSend>();

            postRemindersSend.In.ReminderTypeName = type;
            postRemindersSend.In.Send             = this.Bind <Send>();
            postRemindersSend.In.SendReminders    = sendReminders;
            postRemindersSend.Execute();

            return(postRemindersSend.Out.Send);
        }