public void Delete(FloorEntity floor) { if (floor.ID != 0) { _floorRepository.Detele(floor.ID); } else { throw new Exception("Nothing to delete!"); } }