public ActionResult Create(Salla salla) { try { // TODO: Add insert logic here salla.CreatedOn = DateTime.Now; if (SallatDAL.Insert(salla)) { return(Redirect("Index")); } return(View(salla)); } catch { return(View()); } }
// GET: Sallat/Details/5 public ActionResult Details(int id) { Salla salla = SallatDAL.Read(id); return(View("Details", salla)); }