コード例 #1
0
        public void AddRepeatingItem(AddRepeatingSettings model)
        {
            var reminder = Context.ServiceReminders.FirstOrDefault(x => x.Id == model.Id);

            reminder.RepeatingTypeId  = model.TypeId;
            reminder.RepeatingFigure  = model.Amount;
            reminder.RepeatOffsetDate = model.Offset;

            Context.SaveChanges();
        }
コード例 #2
0
 public IActionResult SetRepeat([FromBody] AddRepeatingSettings settings) =>
 ReturnResult(() => this.repeatingItemService.AddRepeatingItem(settings));