public IList <Model.Admin.StatusPoruka> Insert(Model.Data.Item.RacunVrItem 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 Model.Data.RacunVr InsertResult(Model.Data.Item.RacunVrItem item) { Model.Data.RacunVr 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 int DeleteResult(Model.Data.Item.RacunVrItem 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 ObjectResult <Model.Data.RacunVr> UpdateResult(Model.Data.Item.RacunVrItem item) { return(base.UpdateResult(item)); }
public ObjectResult <Model.Data.RacunVr> InsertResult(Model.Data.Item.RacunVrItem item) { return(base.InsertResult(item)); }
public void Update(Model.Data.Item.RacunVrItem item) { base.Update(item); }
public ObjectResult <int?> DeleteResult(Model.Data.Item.RacunVrItem item) { return(base.DeleteResult(item)); }
public void Insert(Model.Data.Item.RacunVrItem item) { base.Insert(item); }
public ObjectResult <Model.Data.RacunVr> UpdateResult(Model.Data.Item.RacunVrItem item) { return(_context.USP_RacunVr_UPDATE(item.ID_RacunVr, item.Oznaka, item.Naziv)); }
public void Delete(Model.Data.Item.RacunVrItem item) { base.Delete(item); }
public void Update(Model.Data.Item.RacunVrItem item) { _context.USP_RacunVr_UPDATE(item.ID_RacunVr, item.Oznaka, item.Naziv); }
public ObjectResult <Model.Data.RacunVr> InsertResult(Model.Data.Item.RacunVrItem item) { return(_context.USP_RacunVr_INSERT(item.Oznaka, item.Naziv)); }
public void Insert(Model.Data.Item.RacunVrItem item) { _context.USP_RacunVr_INSERT(item.Oznaka, item.Naziv); }
public ObjectResult <int?> DeleteResult(Model.Data.Item.RacunVrItem item) { return(_context.USP_RacunVr_DELETE(item.ID_RacunVr)); }
public void Delete(Model.Data.Item.RacunVrItem item) { _context.USP_RacunVr_DELETE(item.ID_RacunVr); }