Esempio n. 1
0
        public async Task <bool> DeleteSpace(Space s)
        {
            TrackersHandler TH = new TrackersHandler(db);
            await TH.setTrainingLocationNull(s);

            TrainingValuesHandler TVH = new TrainingValuesHandler(db);
            await TVH.DeleteTrainingValues(s);

            db.Entry(s).State = EntityState.Deleted;
            return(true);
        }