// Add a new slot public void AddSlot(SlotViewModel slot) { var newSlot = new Slot { PresentationId = slot.PresentationId, SpeakerId = slot.SpeakerId, RoomId = slot.RoomId, StartTime = slot.StartTime, EndTime = slot.EndTime }; _slotRepo.AddSlot(newSlot); _slotRepo.SaveChanges(); }