Ejemplo n.º 1
0
        // GET: Service
        public ActionResult Index()
        {
            var db   = new PPPKEntities5();
            var data = db.GetServisi();

            return(View(data.ToList()));
        }
Ejemplo n.º 2
0
        public ActionResult Create(FormCollection collection)
        {
            var db = new PPPKEntities5();

            try
            {
                // TODO: Add insert logic here
                // SqlParameter param1 = new SqlParameter("@cijena" , collection.)
                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }