Beispiel #1
0
        public ActionResult AddReview(Bar bar)
        {
            var needbar = BarLogic.SearchBarByItemLogic(bar.BarName);

            return(View(new Review {
                Bar = needbar
            }));
        }
Beispiel #2
0
 void Start()
 {
     pHealth     = GameObject.FindGameObjectWithTag("Player").GetComponent <HealthSystem>();
     enemySprite = GetComponent <SpriteRenderer>();
     damage      = 10;
     bl          = this.GetComponent <BarLogic>();
     pm          = GetComponent <PauseMenu>();
 }
Beispiel #3
0
 public FooLogic(int maxDepth, int maxWidth)
 {
     _maxDepth = maxDepth;
     _maxWidth = maxWidth;
     var bar = new BarLogic(this, maxDepth, maxWidth);
     Register(Cat);
     Register(Dog);
     Register(Cow);
     Register(Sheep);
     Register(bar.Duck);
     Register(bar.Horse);
     Register(bar.Elephant);
     Register(bar.Fox);
 }
Beispiel #4
0
        public FooLogic(int maxDepth, int maxWidth)
        {
            _maxDepth = maxDepth;
            _maxWidth = maxWidth;
            var bar = new BarLogic(this, maxDepth, maxWidth);

            Register(Cat);
            Register(Dog);
            Register(Cow);
            Register(Sheep);
            Register(bar.Duck);
            Register(bar.Horse);
            Register(bar.Elephant);
            Register(bar.Fox);
        }
Beispiel #5
0
 public ActionResult BarListByItem(string SearchBar)
 {
     if (SearchBar != "")
     {
         var CurrentBar = BarLogic.SearchBarByItemLogic(SearchBar);
         if (CurrentBar != null)
         {
             return(View("BarDetails", CurrentBar));
         }
         else
         {
             return(View("Index"));
         }
     }
     else
     {
         return(View("Index"));
     }
 }
Beispiel #6
0
 public ActionResult BarListByCity(string SearchCity)
 {
     if (SearchCity != "")
     {
         var CurrentCityList = BarLogic.SearchBarByCityLogic(SearchCity);
         if (CurrentCityList.Count() == 0)
         {
             return(View("Index"));
         }
         else
         {
             return(View("BarList", CurrentCityList));
         }
     }
     else
     {
         return(View("Index"));
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     _barImage = transform.GetComponent <Image>();
     _barLogic = new BarLogic(_barImage.fillAmount);
 }
Beispiel #8
0
 public ActionResult DeleteBar(int?id)
 {
     BarLogic.DeleteBarLogic(id);
     return(View("Index"));
 }
Beispiel #9
0
 public ActionResult EditBar(Bar bar)
 {
     BarLogic.EditBarLogic(bar);
     return(View("BarDetails", bar));
 }
Beispiel #10
0
        public ActionResult EditBar(int?id)
        {
            Bar b = BarLogic.BarDetailsLogic(id);

            return(View(b));
        }
Beispiel #11
0
 public ActionResult AddBar(Bar bar)
 {
     BarLogic.AddBarLogic(bar);
     return(View("Index"));
 }
Beispiel #12
0
        public ActionResult BarDetails(int?id)
        {
            var newbar = BarLogic.BarDetailsLogic(id);

            return(View(newbar));
        }
Beispiel #13
0
        public ActionResult AddReview(Review rev, string ReviewContent)
        {
            var barrev = BarLogic.AddReviewLogic(rev);

            return(View("BarDetails", barrev));
        }