private void Update(ToDoItem item)
        {
            var dbTask = db.Set <ToDoItem>().Single(u => u.Id == item.Id);

            db.Entry(dbTask).CurrentValues.SetValues(item);
            db.Entry(dbTask).State = EntityState.Modified;
            db.SaveChanges();
            SyncService.AddToUpdateQueue(db.Tasks.Single(t => t.Id == item.Id));
        }
        /// <summary>
        /// !!!!!!!!!!!
        /// </summary>
        /// <param name="item"></param>
        public void UpdateItem(ToDoItemViewModel item)
        {
            var temp = db.Tasks.Single(t => t.Id == item.Id);

            temp.IsCompleted = item.IsCompleted;
            temp.IsChanged   = true;
            Update(temp);
            SyncService.AddToUpdateQueue(temp);
        }