public IActionResult Get()
 {
     try
     {
         return(Ok(_mapper.Map <IEnumerable <Table>, IEnumerable <TableViewModel> >(_repository.GetAllTables())));
     }
     catch (Exception e)
     {
         _logger.LogError($"Faild to get all tables: {e}");
         return(BadRequest("Failed to get all tables"));
     }
 }