private void EditRecord(int id)
        {
            var context = (UserViewModel)BindingContext;
            var record  = Mapper.Map <TrackedDayRecordViewModel>(TrackerService.GetRecord(id, context.SelectedDate));

            record.DrinkType = record.DrinkTypes.First(drinkType => drinkType.Name == record.DrinkType.Name);
            var popup = new AddTrackerRecordPopup()
            {
                BindingContext = record
            };

            popup.OnAddRecord += OnEditRecord;
            PopupNavigation.Instance.PushAsync(popup);
        }