Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (testCheck)
     {
         testingOut("Hey there");
         testCheck = false;
     }
     else if (testCheck2)
     {
         PostSomething ayeMate = HelloWorldVer2;
         ayeMate("Hey there");
         testCheck2 = false;
     }
     else if (testCheck3)
     {
         TestingOutString(2);
         testCheck3 = false;
     }
 }
Beispiel #2
0
 // GET: Post
 #region Post
 public ActionResult PostSomething()
 {
     if (Session["User"] != null)
     {
         PostSomething model = new PostSomething();
         model.Posts              = db.Posts.ToList();
         model.Brands             = db.Brands.ToList();
         model.BrandSelects       = db.BrandSelects.ToList();
         model.Atributes          = db.Atributes.ToList();
         model.AbtributeAndValues = db.AbtributeAndValues.ToList();
         model.Categories         = db.Categories.ToList();
         model.SeccondCategories  = db.SeccondCategories.ToList();
         model.ThirdCategories    = db.ThirdCategories.ToList();
         model.Images             = db.Images.ToList();
         model.count              = db.Posts.Max(s => s.post_id);
         return(View(model));
     }
     else
     {
         return(RedirectToAction("LoginAccount", "Login"));
     }
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     testingOut = this.HelloWorld;
 }