public IList <Model.Admin.StatusPoruka> Insert(Model.Data.Item.PrimitakProsjekIznosItem 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.PrimitakProsjekIznos InsertResult(Model.Data.Item.PrimitakProsjekIznosItem item) { Model.Data.PrimitakProsjekIznos 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.PrimitakProsjekIznosItem 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.PrimitakProsjekIznos> UpdateResult(Model.Data.Item.PrimitakProsjekIznosItem item) { return(base.UpdateResult(item)); }
public void Insert(Model.Data.Item.PrimitakProsjekIznosItem item) { base.Insert(item); }
public void Update(Model.Data.Item.PrimitakProsjekIznosItem item) { base.Update(item); }
public void Delete(Model.Data.Item.PrimitakProsjekIznosItem item) { base.Delete(item); }
public ObjectResult <int?> DeleteResult(Model.Data.Item.PrimitakProsjekIznosItem item) { return(base.DeleteResult(item)); }
public ObjectResult <Model.Data.PrimitakProsjekIznos> UpdateResult(Model.Data.Item.PrimitakProsjekIznosItem item) { return(_context.USP_PrimitakProsjekIznos_UPDATE(item.IDPrimitakProsjekIznos, item.Oznaka, item.Naziv, item.NazivKr, item.Kratica)); }
public void Update(Model.Data.Item.PrimitakProsjekIznosItem item) { _context.USP_PrimitakProsjekIznos_UPDATE(item.IDPrimitakProsjekIznos, item.Oznaka, item.Naziv, item.NazivKr, item.Kratica); }
public void Insert(Model.Data.Item.PrimitakProsjekIznosItem item) { _context.USP_PrimitakProsjekIznos_INSERT(item.IDPrimitakProsjekIznos, item.Oznaka, item.Naziv, item.NazivKr, item.Kratica); }
public ObjectResult <int?> DeleteResult(Model.Data.Item.PrimitakProsjekIznosItem item) { return(_context.USP_PrimitakProsjekIznos_DELETE(item.IDPrimitakProsjekIznos)); }
public void Delete(Model.Data.Item.PrimitakProsjekIznosItem item) { _context.USP_PrimitakProsjekIznos_DELETE(item.IDPrimitakProsjekIznos); }