Exemple #1
0
 public async Task SaveIntoFireStorage()
 {
     if (_fireDataService == null) // to fix tests only
     {
         _fireDataService = new FirebaseDataService("https://firecoretest.firebaseio.com/");
     }
     await _fireDataService.SendIntoFireDatabase(this.DaysAndTimes);
 }
        public async Task Post([FromBody] ScheduleCreate schedule)
        {
            // init month schedule
            var days          = this.ExtractDaysScheduleArray(schedule.WorkingDays);
            var monthSchedule = new MonthScheduleBase {
                Days = days
            };

            // save the schedule into db
            await _firebaseDataService.SendIntoFireDatabase(monthSchedule);
        }