public Model.Data.ShemaStPolje InsertResult(Model.Data.Item.ShemaStPoljeItem item) { Model.Data.ShemaStPolje rezultat; try { rezultat = _repository.InsertResult(item).FirstOrDefault(); } catch (Exception ex) { Model.Admin.StatusPoruka poruka = _admin.AddLogGetException((ex.InnerException != null ? ex.InnerException.ToString() : ex.Message.ToString()), ex.StackTrace.ToString(), _korisnik_data); InLine.Repository.Data.Helper.CommonFunctions.StaviPorukuUSession(poruka, _korisnik_data); rezultat = null; } return(rezultat); }
public IList <Model.Admin.StatusPoruka> Insert(Model.Data.Item.ShemaStPoljeItem item) { IList <Model.Admin.StatusPoruka> poruke = new List <Model.Admin.StatusPoruka>(); try { _repository.Insert(item); } catch (Exception ex) { Model.Admin.StatusPoruka poruka = _admin.AddLogGetException((ex.InnerException != null ? ex.InnerException.ToString() : ex.Message.ToString()), ex.StackTrace.ToString(), _korisnik_data); InLine.Repository.Data.Helper.CommonFunctions.StaviPorukuUSession(poruka, _korisnik_data); poruke.Add(poruka); } return(poruke); }
public int DeleteResult(Model.Data.Item.ShemaStPoljeItem item) { int rezultat = 0; try { //rezultat = Convert.ToInt32(_repository.DeleteResult(item)); ObjectResult <Nullable <Int32> > totalRecordsCount_rezult = _repository.DeleteResult(item); rezultat = Convert.ToInt32(totalRecordsCount_rezult.ElementAt(0)); } catch (Exception ex) { Model.Admin.StatusPoruka poruka = _admin.AddLogGetException((ex.InnerException != null ? ex.InnerException.ToString() : ex.Message.ToString()), ex.StackTrace.ToString(), _korisnik_data); InLine.Repository.Data.Helper.CommonFunctions.StaviPorukuUSession(poruka, _korisnik_data); } return(rezultat); }
public void Update(Model.Data.Item.ShemaStPoljeItem item) { base.Update(item); }
public ObjectResult <Model.Data.ShemaStPolje> UpdateResult(Model.Data.Item.ShemaStPoljeItem item) { return(base.UpdateResult(item)); }
public void Insert(Model.Data.Item.ShemaStPoljeItem item) { base.Insert(item); }
public ObjectResult <Model.Data.ShemaStPolje> InsertResult(Model.Data.Item.ShemaStPoljeItem item) { return(base.InsertResult(item)); }
public void Delete(Model.Data.Item.ShemaStPoljeItem item) { base.Delete(item); }
public ObjectResult <int?> DeleteResult(Model.Data.Item.ShemaStPoljeItem item) { return(base.DeleteResult(item)); }
public ObjectResult <Model.Data.ShemaStPolje> UpdateResult(Model.Data.Item.ShemaStPoljeItem item) { return(_context.USP_ShemaStPolje_UPDATE(item.ID_ShemaStPolje, item.ID_ShemaSt, item.TablicaShema, item.TablicaNaziv, item.TablicaPoljeNaziv, item.AritmetickiOperator, item.Operand, item.Negativno)); }
public void Update(Model.Data.Item.ShemaStPoljeItem item) { _context.USP_ShemaStPolje_UPDATE(item.ID_ShemaStPolje, item.ID_ShemaSt, item.TablicaShema, item.TablicaNaziv, item.TablicaPoljeNaziv, item.AritmetickiOperator, item.Operand, item.Negativno); }
public void Insert(Model.Data.Item.ShemaStPoljeItem item) { _context.USP_ShemaStPolje_INSERT(item.ID_ShemaSt, item.TablicaShema, item.TablicaNaziv, item.TablicaPoljeNaziv, item.AritmetickiOperator, item.Operand, item.Negativno); }
public ObjectResult <int?> DeleteResult(Model.Data.Item.ShemaStPoljeItem item) { return(_context.USP_ShemaStPolje_DELETE(item.ID_ShemaStPolje)); }
public void Delete(Model.Data.Item.ShemaStPoljeItem item) { _context.USP_ShemaStPolje_DELETE(item.ID_ShemaStPolje); }