public void updateFeeVoucherType(FeeVoucherType FeeVoucherType) { SMSContext sMSContext = new SMSContext(); sMSContext.Entry(FeeVoucherType).State = System.Data.Entity.EntityState.Modified; sMSContext.SaveChanges(); }
public void saveFeeVoucherType(FeeVoucherType FeeVoucherType) { SMSContext sMSContext = new SMSContext(); sMSContext.FeeVoucherTypes.Add(FeeVoucherType); sMSContext.SaveChanges(); }