public int SaveChef(Chef _chef)
        {
            database = DependencyService.Get <ISQLite> ().GetConnection();

            lock (locker) {
                var ch = GetChefByName(_chef.Name);

                if (ch == null)
                {
                    return(database.Insert(_chef));
                }
                else
                {
                    database.Update(_chef);
                    return(_chef.ID);
                }
            }
        }
        public ChefDetailViewModel(INavigation navigation)
        {
            this.navigation = navigation;

            CurrentChef = new Chef();
        }
        public ChefDetailViewModel(Chef _currentChef, INavigation navigation)
        {
            this.navigation = navigation;

            CurrentChef = _currentChef;
        }