public bool CreateVoucher(Voucher voucherObj) { try { voucherObj.State = ObjectState.Added; _finalCrudOperation.AddOperation(voucherObj); return true; } catch (Exception ex) { var rr = ex.Message; return false; } }
public bool UpdateVoucher(Voucher voucherObj) { try { voucherObj.State = ObjectState.Modified; _finalCrudOperation.UpdateOperation(voucherObj); return true; } catch (Exception ex) { var msg = ex.Message; return false; } }