Esempio n. 1
0
 public ActionResult UpdateAdvertisment(Advertisment advertisment)
 {
     if (advertisment != null)
     {
         advertismentsService.Update(advertisment);
         return Json(true, JsonRequestBehavior.AllowGet);
     }
     return Json(false, JsonRequestBehavior.AllowGet);
 }
Esempio n. 2
0
 public ActionResult AddAdvertisment(Advertisment advertisment)
 {
     if (advertisment != null)
     {
         advertisment.Id = Guid.NewGuid();
         advertismentsService.Add(advertisment);
         return Json(false, JsonRequestBehavior.AllowGet);
     }
     return Json(true, JsonRequestBehavior.AllowGet);
 }