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; }
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); }