Exemplo n.º 1
0
 public ActionResult Insert(InLine.Model.Data.Item.TemeljnicaStKriterijItem item)
 {
     if (item.ID_TemeljnicaStKriterij == -1)
     {
         IList <InLine.Model.Admin.StatusPoruka> status = _service.Insert(item);
         return(Json(status, JsonRequestBehavior.AllowGet));
     }
     else
     {
         IList <InLine.Model.Admin.StatusPoruka> status = _service.Update(item);
         return(Json(status, JsonRequestBehavior.AllowGet));
     }
 }
Exemplo n.º 2
0
        public ActionResult Delete(InLine.Model.Data.Item.TemeljnicaStKriterijItem item)
        {
            IList <InLine.Model.Admin.StatusPoruka> status = _service.Delete(item);

            return(Json(status, JsonRequestBehavior.AllowGet));
        }