private async Task <bool> TakeImage()
        {
            await _camService.Init();

            var media = await _camService.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
            {
                CustomPhotoSize    = 300,
                CompressionQuality = 100,
                DefaultCamera      = Plugin.Media.Abstractions.CameraDevice.Front,
                Directory          = "teknolot",
                RotateImage        = false,
                SaveMetaData       = false,
                PhotoSize          = Plugin.Media.Abstractions.PhotoSize.Medium,
                AllowCropping      = true,
                SaveToAlbum        = false
            });

            if (media == null)
            {
                return(false);
            }

            _dialogService.ShowLoading();
            _url = await _serviceManager.Upload(media);

            User.File = ImageSource.FromUri(new Uri(_url));
            _dialogService.HideLoading();
            return(!String.IsNullOrEmpty(_url));
        }
        public async Task AddNewPicture()
        {
            byte[] file = null;

            //if (camService.PickPhotoSupported())
            //    file = await camService.PickPhotoAsync();

            if (camService.CameraAvailable())
            {
                file = await camService.TakePhotoAsync();
            }

            if (file == null)
            {
                return;
            }
            File1 = file;
        }