Пример #1
0
        public IList <Model.Admin.StatusPoruka> Insert(Model.Data.Item.ShemaGrShemaGrItem 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);
        }
Пример #2
0
        public Model.Data.ShemaGrShemaGr InsertResult(Model.Data.Item.ShemaGrShemaGrItem item)
        {
            Model.Data.ShemaGrShemaGr 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);
        }
Пример #3
0
        public int DeleteResult(Model.Data.Item.ShemaGrShemaGrItem 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);
        }
Пример #4
0
 public ObjectResult <Model.Data.ShemaGrShemaGr> UpdateResult(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     return(base.UpdateResult(item));
 }
Пример #5
0
 public ObjectResult <Model.Data.ShemaGrShemaGr> InsertResult(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     return(base.InsertResult(item));
 }
Пример #6
0
 public void Update(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     base.Update(item);
 }
Пример #7
0
 public ObjectResult <int?> DeleteResult(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     return(base.DeleteResult(item));
 }
Пример #8
0
 public void Insert(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     base.Insert(item);
 }
Пример #9
0
 public ObjectResult <Model.Data.ShemaGrShemaGr> UpdateResult(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     return(_context.USP_ShemaGrShemaGr_UPDATE(item.ID_ShemaGrShemaGr, item.ID_ShemaGrShemaGrStruktura, item.ID_ShemaGr, item.ID_ShemaGrNad, item.Nivo, item.Put));
 }
Пример #10
0
 public void Delete(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     base.Delete(item);
 }
Пример #11
0
 public void Update(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     _context.USP_ShemaGrShemaGr_UPDATE(item.ID_ShemaGrShemaGr, item.ID_ShemaGrShemaGrStruktura, item.ID_ShemaGr, item.ID_ShemaGrNad, item.Nivo, item.Put);
 }
Пример #12
0
 public ObjectResult <Model.Data.ShemaGrShemaGr> InsertResult(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     return(_context.USP_ShemaGrShemaGr_INSERT(item.ID_ShemaGrShemaGrStruktura, item.ID_ShemaGr, item.ID_ShemaGrNad, item.Nivo, item.Put));
 }
Пример #13
0
 public void Insert(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     _context.USP_ShemaGrShemaGr_INSERT(item.ID_ShemaGrShemaGrStruktura, item.ID_ShemaGr, item.ID_ShemaGrNad, item.Nivo, item.Put);
 }
Пример #14
0
 public ObjectResult <int?> DeleteResult(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     return(_context.USP_ShemaGrShemaGr_DELETE(item.ID_ShemaGrShemaGr));
 }
Пример #15
0
 public void Delete(Model.Data.Item.ShemaGrShemaGrItem item)
 {
     _context.USP_ShemaGrShemaGr_DELETE(item.ID_ShemaGrShemaGr);
 }