public void Update(TlkpTestIndicators obj) { //throw new NotImplementedException(); TlkpTestIndicators indicator = GetById(obj.Id); if (indicator != null) { indicator.IndicatorName = obj.IndicatorName; Save(indicator); } }
public void Delete(object id) { //throw new NotImplementedException(); TlkpTestIndicators indicator = GetById(id); if (indicator != null) { Context.TlkpTestIndicators.Remove(indicator); //Save(); Context.SaveChanges(); } }
public void Save(TlkpTestIndicators obj) { //throw new NotImplementedException(); Context.SaveChanges(); Context.Entry(obj).ReloadAsync(); }
public void Create(TlkpTestIndicators obj) { //throw new NotImplementedException(); Context.TlkpTestIndicators.Add(obj); }