Exemple #1
0
        public async Task OdbijPoziv(int id)
        {
            PozivNaEventPatchRequest patchRequest = new PozivNaEventPatchRequest {
                Id = id, IsOdbijen = true
            };

            PozivNaEvent result = await _pozivNaEventService.UpdateAttribute <PozivNaEvent>(patchRequest);

            if (result != null && result != default(PozivNaEvent))
            {
                await GetPrihvaceniPozivi();
            }
        }
Exemple #2
0
        public async Task PrihvatiPoziv(int id)
        {
            PozivNaEventPatchRequest patchRequest = new PozivNaEventPatchRequest {
                Id = id, IsPrihvacen = true
            };

            PozivNaEvent result = await _pozivNaEventService.UpdateAttribute <PozivNaEvent>(patchRequest);

            if (result != null && result != default(PozivNaEvent))
            {
                if (request != null && request.NoviPozivi && request.OdbijeniPozivi)
                {
                    await GetOdbijeniPozivi();
                }
                if (request != null && request.NoviPozivi && request.NeodgovoreniPozivi)
                {
                    await Init();
                }
            }
        }