コード例 #1
0
 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);
 }
コード例 #2
0
        public static async Task <bool> Remove(PlanovanyTreninkModel currentSelection)
        {
            FirestoreDataMapper <TreninkovyPlanDTO> firestoreDataMapper = new FirestoreDataMapper <TreninkovyPlanDTO>();

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