示例#1
0
 public ActionResult AddAnnouncement(AnnouncementModel gelenler)
 {
     StokKontrolEntitiesProvider.AddAnnouncement(Convert.ToInt32(Session["UserObjectId"]), gelenler.StartDate, gelenler.EndDate);
     foreach (var item in gelenler.urunList)
     {
         if (item.Selected == true)
         {
             Urun urun = StokKontrolEntitiesProvider.GetProductNameByObjectId(item.ObjectId);
             if (urun.UrunTipi != null)
             {
                 item.UrunTipiString = urun.UrunTipi.UrunTipi1;
             }
             else
             {
                 item.UrunTipiString = "Birim";
             }
             item.UrunAdi = urun.UrunAdi;
         }
     }
     return(PartialView(gelenler));
 }