public ActionResult AddReview(Bar bar) { var needbar = BarLogic.SearchBarByItemLogic(bar.BarName); return(View(new Review { Bar = needbar })); }
void Start() { pHealth = GameObject.FindGameObjectWithTag("Player").GetComponent <HealthSystem>(); enemySprite = GetComponent <SpriteRenderer>(); damage = 10; bl = this.GetComponent <BarLogic>(); pm = GetComponent <PauseMenu>(); }
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); }
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")); } }
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); }
public ActionResult DeleteBar(int?id) { BarLogic.DeleteBarLogic(id); return(View("Index")); }
public ActionResult EditBar(Bar bar) { BarLogic.EditBarLogic(bar); return(View("BarDetails", bar)); }
public ActionResult EditBar(int?id) { Bar b = BarLogic.BarDetailsLogic(id); return(View(b)); }
public ActionResult AddBar(Bar bar) { BarLogic.AddBarLogic(bar); return(View("Index")); }
public ActionResult BarDetails(int?id) { var newbar = BarLogic.BarDetailsLogic(id); return(View(newbar)); }
public ActionResult AddReview(Review rev, string ReviewContent) { var barrev = BarLogic.AddReviewLogic(rev); return(View("BarDetails", barrev)); }