예제 #1
0
        public async Task <IActionResult> EraseDb()
        {
            _logger.LogThisMethod();
            var res = await _catalogService.EraseDb();

            return(Ok(res
                ? "Database cleaned, go back and refresh"
                : "Database was already empty, go back and refresh"));
        }