Implement cleaning mmc where features and response are null.

This commit is contained in:
2019-11-13 00:51:33 +00:00
parent ce68cc99a5
commit 630d324b07

View File

@@ -80,14 +80,14 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
return RedirectToAction(nameof(Index));
}
public IActionResult Decode(int id)
{
throw new NotImplementedException();
}
public IActionResult Decode(int id) => throw new NotImplementedException();
public IActionResult Clean()
public async Task<IActionResult> Clean()
{
throw new NotImplementedException();
_context.Mmc.RemoveRange(_context.Mmc.Where(m => m.FeaturesId == null && m.ModeSense2AData == null));
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
}
}