Use Database.RemoveSlot when removing slot on website

This commit is contained in:
jvyden 2022-02-21 19:18:57 -05:00
commit 40ce3edba7
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -62,10 +62,7 @@ public class AdminSlotController : ControllerBase
if (slot.Location == null) throw new ArgumentNullException();
this.database.Locations.Remove(slot.Location);
this.database.Slots.Remove(slot);
await this.database.SaveChangesAsync();
await this.database.RemoveSlot(slot);
return this.Ok();
}