public static async Task Save(PlanovanyTreninkModel currentSelection)
 {
     FirestoreDataMapper<PlanovanyTreninkDTO> firestoreDataMapper = new FirestoreDataMapper<PlanovanyTreninkDTO>();
     PlanovanyTreninkDTO planovanyTreninkDTO = new PlanovanyTreninkDTO(currentSelection.Id, 
                                                                         currentSelection.IdTrenera,
                                                                         currentSelection.IdKlienta,
                                                                         currentSelection.MistoKonani,
                                                                         currentSelection.Potvrzen,
                                                                         currentSelection.Poznamka,
                                                                         currentSelection.CasKonani.ToUniversalTime());
     await firestoreDataMapper.Update(planovanyTreninkDTO);
 }
Example #2
0
        public static async Task <bool> Remove(PlanovanyTreninkModel currentSelection)
        {
            FirestoreDataMapper <TreninkovyPlanDTO> firestoreDataMapper = new FirestoreDataMapper <TreninkovyPlanDTO>();

            return(await firestoreDataMapper.Delete(currentSelection.Id));
        }