public void Delete(string id, long companyId) { FeatureSetList featureSetList = this.GetSingle(id, companyId); this.Context.FeatureSetLists.Remove(featureSetList); this.Commit(); }
public string Update(FeatureSetList entity) { this.Context.FeatureSetLists.Attach(entity); this.Context.Entry(entity).State = EntityState.Modified; this.Commit(); return(entity.Id.ToString()); }
public string Update(FeatureSetList entity) { return(this.repository.Update(entity)); }
public string Insert(FeatureSetList entity) { return(this.repository.Insert(entity)); }
public void Delete(FeatureSetList featureSetList) { this.Context.FeatureSetLists.Remove(featureSetList); this.Commit(); }
public string Insert(FeatureSetList entity) { this.Context.FeatureSetLists.Add(entity); this.Commit(); return(entity.Id.ToString()); }
public FeatureSetList GetSingle(string id, long companyId) { FeatureSetList entity = this.GetAll(companyId).FirstOrDefault(x => x.Id == Convert.ToInt64(id)); return(entity); }