public IActionResult MigrateUp()
 {
     try
     {
         _migrator.Up();
         return(Ok(new { result = "Ok!" }));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }
Exemple #2
0
 public IHttpActionResult MigrationUp()
 {
     try
     {
         _migrator.Up();
         return(Ok(new { Result = "Ok!" }));
     }
     catch (Exception e)
     {
         _logger.Error(e);
         throw;
     }
 }