Example #1
0
        public Model.Data.Kalendar InsertResult(Model.Data.Item.KalendarItem item)
        {
            Model.Data.Kalendar 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 #2
0
        public IList <Model.Admin.StatusPoruka> Insert(Model.Data.Item.KalendarItem 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 #3
0
        public int DeleteResult(Model.Data.Item.KalendarItem 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.Kalendar> UpdateResult(Model.Data.Item.KalendarItem item)
 {
     return(base.UpdateResult(item));
 }
 public void Update(Model.Data.Item.KalendarItem item)
 {
     base.Update(item);
 }
 public ObjectResult <Model.Data.Kalendar> InsertResult(Model.Data.Item.KalendarItem item)
 {
     return(base.InsertResult(item));
 }
 public void Insert(Model.Data.Item.KalendarItem item)
 {
     base.Insert(item);
 }
 public ObjectResult <int?> DeleteResult(Model.Data.Item.KalendarItem item)
 {
     return(base.DeleteResult(item));
 }
 public void Delete(Model.Data.Item.KalendarItem item)
 {
     base.Delete(item);
 }
Example #10
0
 public ObjectResult <Model.Data.Kalendar> UpdateResult(Model.Data.Item.KalendarItem item)
 {
     return(_context.USP_Kalendar_UPDATE(item.IDDatum, item.RBR, item.Datum, item.Godina, item.Mjesec, item.Dan, item.Tromjesecje, item.TjedanUGodini, item.DanUGodini, item.DanUTjednu));
 }
Example #11
0
 public void Update(Model.Data.Item.KalendarItem item)
 {
     _context.USP_Kalendar_UPDATE(item.IDDatum, item.RBR, item.Datum, item.Godina, item.Mjesec, item.Dan, item.Tromjesecje, item.TjedanUGodini, item.DanUGodini, item.DanUTjednu);
 }
Example #12
0
 public void Insert(Model.Data.Item.KalendarItem item)
 {
     _context.USP_Kalendar_INSERT(item.IDDatum, item.RBR, item.Datum, item.Godina, item.Mjesec, item.Dan, item.Tromjesecje, item.TjedanUGodini, item.DanUGodini, item.DanUTjednu);
 }
Example #13
0
 public ObjectResult <int?> DeleteResult(Model.Data.Item.KalendarItem item)
 {
     return(_context.USP_Kalendar_DELETE(item.IDDatum));
 }
Example #14
0
 public void Delete(Model.Data.Item.KalendarItem item)
 {
     _context.USP_Kalendar_DELETE(item.IDDatum);
 }