Exemplo n.º 1
0
        public ActionResult Create(Tag tag)
        {
            if (ModelState.IsValid)
            {
                tag.created = DateTime.Now;
                tag.is_synched = 1;

                using (Context db = new Context())
                {
                    db.Tags.Add(tag);
                    db.SaveChanges();
                    TempData["Status"] = "1";
                    return RedirectToAction("Create");
                }
            }
            return View();
        }
Exemplo n.º 2
0
 partial void UpdateTag(Tag instance);
Exemplo n.º 3
0
 partial void DeleteTag(Tag instance);
Exemplo n.º 4
0
 partial void InsertTag(Tag instance);