public async Task <bool> UpdateLogger(LoggerInputDto input) { var entity = await _LoggerManager.GetLoggerByIdAsync(input.Id); input.MapTo(entity); return(await _LoggerManager.UpdateLoggerAsync(entity)); }
public async Task <bool> CreateLogger(LoggerInputDto input) { var entity = input.MapTo <Logger>(); return(await _LoggerManager.CreateLoggerAsync(entity)); }