public ActionResult grazinimas_create(Grazinima newGrazinimas) { if (ModelState.IsValid) { _entities.Grazinimas.Add(newGrazinimas); _entities.SaveChanges(); } return(RedirectToAction("grazinimo_formos")); }
public ActionResult grazinimas_create() { Grazinima grazinima = new Grazinima(); return(View(grazinima));; }