Example #1
0
        public IList <Model.Admin.StatusPoruka> Insert(Model.Data.Item.PosebanPorezDohodakVrItem 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);
        }
Example #2
0
        public Model.Data.PosebanPorezDohodakVr InsertResult(Model.Data.Item.PosebanPorezDohodakVrItem item)
        {
            Model.Data.PosebanPorezDohodakVr 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);
        }
Example #3
0
        public int DeleteResult(Model.Data.Item.PosebanPorezDohodakVrItem 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.PosebanPorezDohodakVr> UpdateResult(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     return(base.UpdateResult(item));
 }
 public void Insert(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     base.Insert(item);
 }
 public void Update(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     base.Update(item);
 }
 public void Delete(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     base.Delete(item);
 }
 public ObjectResult <int?> DeleteResult(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     return(base.DeleteResult(item));
 }
Example #9
0
 public ObjectResult <Model.Data.PosebanPorezDohodakVr> UpdateResult(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     return(_context.USP_PosebanPorezDohodakVr_UPDATE(item.ID_PosebanPorezDohodakVr, item.Oznaka, item.Naziv, item.NazivKr, item.Kratica, item.DatumOd, item.DatumDo, item.NNGodina, item.NNBroj, item.NNClanak, item.NNDatum));
 }
Example #10
0
 public void Update(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     _context.USP_PosebanPorezDohodakVr_UPDATE(item.ID_PosebanPorezDohodakVr, item.Oznaka, item.Naziv, item.NazivKr, item.Kratica, item.DatumOd, item.DatumDo, item.NNGodina, item.NNBroj, item.NNClanak, item.NNDatum);
 }
Example #11
0
 public void Insert(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     _context.USP_PosebanPorezDohodakVr_INSERT(item.Oznaka, item.Naziv, item.NazivKr, item.Kratica, item.DatumOd, item.DatumDo, item.NNGodina, item.NNBroj, item.NNClanak, item.NNDatum);
 }
Example #12
0
 public ObjectResult <int?> DeleteResult(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     return(_context.USP_PosebanPorezDohodakVr_DELETE(item.ID_PosebanPorezDohodakVr));
 }
Example #13
0
 public void Delete(Model.Data.Item.PosebanPorezDohodakVrItem item)
 {
     _context.USP_PosebanPorezDohodakVr_DELETE(item.ID_PosebanPorezDohodakVr);
 }