protected override void GetEmployeeWithGivenPinCodeCompleted(object sender, GetEmployeeWithGivenPinCodeCompletedEventArgs e)
 {
     EmployeeServiceClient.GetEmployeeWithGivenPinCodeCompleted -= GetEmployeeWithGivenPinCodeCompleted;
     if (e.Result != null)
     {
         Message = Models.Message.LoggedIn;
         ShowViewModel <ScheduleViewModel>();
     }
     else
     {
         Message = Models.Message.ErrorTryAgain;
     }
 }
 protected override void GetEmployeeWithGivenPinCodeCompleted(object sender, GetEmployeeWithGivenPinCodeCompletedEventArgs e)
 {
     EmployeeServiceClient.GetEmployeeWithGivenPinCodeCompleted -= GetEmployeeWithGivenPinCodeCompleted;
     if (e.Result != null)
     {
         if (e.Result.JobTitle == JobTitle.Chef)
         {
             Message = Models.Message.LoggedIn;
             ShowViewModel <PurchaseAndStockViewModel>(new EmployeeDetailParameter {
                 Pincode = e.Result.PinCode, Id = e.Result.EmployeeId
             });
         }
         else
         {
             Message = Models.Message.NotEnoughCerendital;
         }
     }
     else
     {
         Message = Models.Message.ErrorTryAgain;
     }
 }