public IList <Model.Admin.StatusPoruka> Insert(Model.Data.Item.PrimitakItem 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.Primitak InsertResult(Model.Data.Item.PrimitakItem item) { Model.Data.Primitak 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.PrimitakItem 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.Primitak> UpdateResult(Model.Data.Item.PrimitakItem item) { return(_context.USP_Primitak_UPDATE(item.ID_Primitak, item.Oznaka, item.Naziv, item.NazivKr, item.Kratica, item.ID_PrimitakGrProsjek, item.ID_PrimitakGrProsjekAlt, item.ProsjekVeci, item.ProsjektMjeseci, item.ProsjekZaMjesec, item.PrimitakProsjekIznos, item.PrimitakProsjekIzracun, item.IDObrazacRSmOsiguranjeOsnova2005A, item.ID_PrimitakGrMinuliRadSati, item.ID_PrimitakGrMinuliRadOsnova)); }
public void Insert(Model.Data.Item.PrimitakItem item) { _context.USP_Primitak_INSERT(item.Oznaka, item.Naziv, item.NazivKr, item.Kratica, item.ID_PrimitakGrProsjek, item.ID_PrimitakGrProsjekAlt, item.ProsjekVeci, item.ProsjektMjeseci, item.ProsjekZaMjesec, item.PrimitakProsjekIznos, item.PrimitakProsjekIzracun, item.IDObrazacRSmOsiguranjeOsnova2005A, item.ID_PrimitakGrMinuliRadSati, item.ID_PrimitakGrMinuliRadOsnova); }
public ObjectResult <int?> DeleteResult(Model.Data.Item.PrimitakItem item) { return(_context.USP_Primitak_DELETE(item.ID_Primitak)); }
public void Delete(Model.Data.Item.PrimitakItem item) { _context.USP_Primitak_DELETE(item.ID_Primitak); }
public ObjectResult <Model.Data.Primitak> UpdateResult(Model.Data.Item.PrimitakItem item) { return(base.UpdateResult(item)); }
public void Update(Model.Data.Item.PrimitakItem item) { base.Update(item); }
public ObjectResult <Model.Data.Primitak> InsertResult(Model.Data.Item.PrimitakItem item) { return(base.InsertResult(item)); }
public void Insert(Model.Data.Item.PrimitakItem item) { base.Insert(item); }
public ObjectResult <int?> DeleteResult(Model.Data.Item.PrimitakItem item) { return(base.DeleteResult(item)); }
public void Delete(Model.Data.Item.PrimitakItem item) { base.Delete(item); }