public int Delete(int id) { MoneyCalGuide mcal = this.context.MoneyCalGuides.SingleOrDefault(x => x.MoneyCalGuideId == id); this.context.MoneyCalGuides.Remove(mcal); return(this.context.SaveChanges()); }
public int Insert(MoneyCalGuide mcal) { this.context.MoneyCalGuides.Add(mcal); return(this.context.SaveChanges()); }