Exemplo n.º 1
0
        public async Task <bool> UpdateScheduler(SchedulerInputDto input)
        {
            var entity = await _SchedulerManager.GetSchedulerByIdAsync(input.Id);

            input.MapTo(entity);
            return(await _SchedulerManager.UpdateSchedulerAsync(entity));
        }
Exemplo n.º 2
0
        public async Task <bool> CreateScheduler(SchedulerInputDto input)
        {
            var entity = input.MapTo <Scheduler>();

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