Exemple #1
0
        public void Update(TlkpTestIndicators obj)
        {
            //throw new NotImplementedException();
            TlkpTestIndicators indicator = GetById(obj.Id);

            if (indicator != null)
            {
                indicator.IndicatorName = obj.IndicatorName;
                Save(indicator);
            }
        }
Exemple #2
0
        public void Delete(object id)
        {
            //throw new NotImplementedException();
            TlkpTestIndicators indicator = GetById(id);

            if (indicator != null)
            {
                Context.TlkpTestIndicators.Remove(indicator);
                //Save();
                Context.SaveChanges();
            }
        }
Exemple #3
0
 public void Save(TlkpTestIndicators obj)
 {
     //throw new NotImplementedException();
     Context.SaveChanges();
     Context.Entry(obj).ReloadAsync();
 }
Exemple #4
0
 public void Create(TlkpTestIndicators obj)
 {
     //throw new NotImplementedException();
     Context.TlkpTestIndicators.Add(obj);
 }