public ActionResult Guncelle(depo p1) { var depo = db.depoes.Find(p1.depoid); depo.depoadi = p1.depoadi; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniDepo(depo ekle) { if (!ModelState.IsValid) { return(View("YeniDepo")); } db.depoes.Add(ekle); db.SaveChanges(); return(RedirectToAction("Index")); }
static void Main(string[] args) { var depo = new depo(60); var magaza1 = new filial(20, "flo"); var magaza2 = new filial(20, "Pull Bear"); var magaza3 = new filial(20, "LC Waikiki"); Console.WriteLine("birinci magazada satilan mallarin sayi: "); magaza1.satilanMallarinSayi = int.Parse(Console.ReadLine()); Console.WriteLine("ikinci magazada satilan mallarin sayi: "); magaza2.satilanMallarinSayi = int.Parse(Console.ReadLine()); Console.WriteLine("ucuncu magazada satilan mallarin sayi: "); magaza3.satilanMallarinSayi = int.Parse(Console.ReadLine()); depo.mallariPayla(filial.filiallar); depo.print(filial.filiallar); }