Esempio n. 1
0
        public ActionResult Index(int?userId)
        {
            CommentStruct        commentStruct = null;
            CommentStructService service       = new CommentStructService();

            if (ModelState.IsValid)
            {
                commentStruct = service.GetCommentStructure(userId);
            }

            return(View(commentStruct));
        }
Esempio n. 2
0
 private void Finisher(bool negative)
 {
     if (negative)
     {
     }
     else
     {
         Meal _meal = meal.GetComponent <Meal>();
         commentStruct         = new CommentStruct();
         commentStruct.point   = _meal.points[CustomerSegmentation] * Random.Range(0.8f, 1.2f);
         commentStruct.comment = CommentDetail(commentStruct.point);
         commentStruct.name    = NameProducer();
         MealList.points.Add(commentStruct);
         Debug.Log("point =" + _meal.points[CustomerSegmentation] + " ,zaman =" + zaman + "creating time=" + _meal.createdTime);
         Debug.Log(MealList.points[0].comment);
     }
 }