Beispiel #1
0
        public Model.Data.PrimitakGr InsertResult(Model.Data.Item.PrimitakGrItem item)
        {
            Model.Data.PrimitakGr 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);
        }
Beispiel #2
0
        public IList <Model.Admin.StatusPoruka> Insert(Model.Data.Item.PrimitakGrItem 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);
        }
Beispiel #3
0
        public int DeleteResult(Model.Data.Item.PrimitakGrItem 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);
        }
Beispiel #4
0
 public ObjectResult <Model.Data.PrimitakGr> UpdateResult(Model.Data.Item.PrimitakGrItem item)
 {
     return(base.UpdateResult(item));
 }
Beispiel #5
0
 public void Update(Model.Data.Item.PrimitakGrItem item)
 {
     base.Update(item);
 }
Beispiel #6
0
 public ObjectResult <Model.Data.PrimitakGr> InsertResult(Model.Data.Item.PrimitakGrItem item)
 {
     return(base.InsertResult(item));
 }
Beispiel #7
0
 public void Insert(Model.Data.Item.PrimitakGrItem item)
 {
     base.Insert(item);
 }
Beispiel #8
0
 public ObjectResult <int?> DeleteResult(Model.Data.Item.PrimitakGrItem item)
 {
     return(base.DeleteResult(item));
 }
Beispiel #9
0
 public void Delete(Model.Data.Item.PrimitakGrItem item)
 {
     base.Delete(item);
 }
Beispiel #10
0
 public ObjectResult <Model.Data.PrimitakGr> UpdateResult(Model.Data.Item.PrimitakGrItem item)
 {
     return(_context.USP_PrimitakGr_UPDATE(item.ID_PrimitakGr, item.Oznaka, item.Naziv, item.NazivKr, item.Kratica));
 }
Beispiel #11
0
 public void Update(Model.Data.Item.PrimitakGrItem item)
 {
     _context.USP_PrimitakGr_UPDATE(item.ID_PrimitakGr, item.Oznaka, item.Naziv, item.NazivKr, item.Kratica);
 }
Beispiel #12
0
 public ObjectResult <Model.Data.PrimitakGr> InsertResult(Model.Data.Item.PrimitakGrItem item)
 {
     return(_context.USP_PrimitakGr_INSERT(item.Oznaka, item.Naziv, item.NazivKr, item.Kratica));
 }
Beispiel #13
0
 public void Insert(Model.Data.Item.PrimitakGrItem item)
 {
     _context.USP_PrimitakGr_INSERT(item.Oznaka, item.Naziv, item.NazivKr, item.Kratica);
 }
Beispiel #14
0
 public ObjectResult <int?> DeleteResult(Model.Data.Item.PrimitakGrItem item)
 {
     return(_context.USP_PrimitakGr_DELETE(item.ID_PrimitakGr));
 }
Beispiel #15
0
 public void Delete(Model.Data.Item.PrimitakGrItem item)
 {
     _context.USP_PrimitakGr_DELETE(item.ID_PrimitakGr);
 }