Example #1
0
 public ActionResult Update(Models.Kargo kargo)
 {
     var _kargo = db.Kargo.Single(x => x.Id == kargo.Id);
     _kargo.KargocuId = kargo.KargocuId;
     _kargo.UrunId = kargo.UrunId;
     _kargo.DurumID = kargo.DurumID;
     db.SaveChanges();
     return RedirectToAction("Index");
 }
Example #2
0
        public ActionResult Create(int KargocuId, int UrunId, int DurumID)
        {
            //asdasd
            Models.Kargo _kargo = new Models.Kargo();
            _kargo.SonIslemTarihi = DateTime.Now;
            _kargo.KargocuId =KargocuId ;
            _kargo.UrunId = UrunId;
            _kargo.DurumID = DurumID;           
            db.Kargo.Add(_kargo);
            db.SaveChanges();
            return RedirectToAction("Index");

        }