Exemple #1
0
        public async Task <bool> UpdateLogger(LoggerInputDto input)
        {
            var entity = await _LoggerManager.GetLoggerByIdAsync(input.Id);

            input.MapTo(entity);
            return(await _LoggerManager.UpdateLoggerAsync(entity));
        }
Exemple #2
0
        public async Task <bool> CreateLogger(LoggerInputDto input)
        {
            var entity = input.MapTo <Logger>();

            return(await _LoggerManager.CreateLoggerAsync(entity));
        }