コード例 #1
0
        public async Task <bool> UpdateScheduler(SchedulerInputDto input)
        {
            var entity = await _SchedulerManager.GetSchedulerByIdAsync(input.Id);

            input.MapTo(entity);
            return(await _SchedulerManager.UpdateSchedulerAsync(entity));
        }
コード例 #2
0
        public async Task <bool> CreateScheduler(SchedulerInputDto input)
        {
            var entity = input.MapTo <Scheduler>();

            return(await _SchedulerManager.CreateSchedulerAsync(entity));
        }