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(); }
public IActionResult SetRepeat([FromBody] AddRepeatingSettings settings) => ReturnResult(() => this.repeatingItemService.AddRepeatingItem(settings));