public async Task SaveJob()
 {
     if (SelectedJob != null)
     {
         await SelectedJob.Update();
     }
 }
 public async Task AssignTechnician()
 {
     if (SelectedJob != null && App.LoggedInUser.GetType() == typeof(Technician))
     {
         SelectedJob.Technician = LoggedInUser.Id;
         selectedJob.Started    = DateTime.Now;
         await SelectedJob.Update();
     }
 }
        public async Task MarkCompleted()
        {
            if (SelectedJob != null)
            {
                //Mark for completion
                SelectedJob.Completed = true;
                //Set the finish time
                SelectedJob.Finished = DateTimeOffset.Now;
                //Update backend
                await SelectedJob.Update();

                //Remove from active job queue
                Jobs.Remove(SelectedJob);
                SelectedJob = null;
            }
            else
            {
                await new MessageDialog("Please select a job").ShowAsync();
            }
        }