Ejemplo n.º 1
0
        public void ExecuteAddFeadback()
        {
            FeedBack feedBack = FeedbackModel.getAsFeedBack();

            feedBack.IceCreamID = iceCream.IceCreamId;
            var status = feedBackLogic.addFeedBack(feedBack);

            switch (status)
            {
            case FeedBackLogic.Status.Success:
                SnackbarMessageQueue.Enqueue("Succesful added feedback, Thank you very match.");
                break;

            case FeedBackLogic.Status.ExistError:
                SnackbarMessageQueue.Enqueue("Oops, You just add feedback now...");
                break;

            default:
                SnackbarMessageQueue.Enqueue("Error, Can not add feedback now. Please try latter.");
                break;
            }
        }
Ejemplo n.º 2
0
 public void ExecuteAddFeadback()
 {
     feedBackLogic.addFeedBack(FeedbackModel.getAsFeedBack());
 }