public static bool UpdateData(string id, string symbol, SideEnum side, PriceComparisonEnum evaluator, RatePriceOrFeeEnum ratePriceFee, DateTime expiration, bool usePercentMoney, double bidStrike, double midStrike, double highStrike, string account, double limit, ListenerTypeEnum listenerType, string jobId, string comments) { var select = MyObj.UpdateData(id, symbol, side, evaluator, ratePriceFee, expiration, usePercentMoney, bidStrike, midStrike, highStrike, account, limit, listenerType, jobId, comments); /* return new JavaScriptSerializer().Serialize( * "Hello, " + item + ", " + qty + " " + date+ " "+ phone+"!");*/ return(select); //return "Hello i am parth"; }
public static ArrayList GetData() { var select = MyObj.GetData(); //return select; String[] side = Enum.GetNames(typeof(SideEnum)); String[] priceComarison = Enum.GetNames(typeof(PriceComparisonEnum)); String[] rateprice = Enum.GetNames(typeof(RatePriceOrFeeEnum)); String[] listnerType = Enum.GetNames(typeof(ListenerTypeEnum)); ArrayList al = new ArrayList(); al.Add(side); al.Add(priceComarison); al.Add(rateprice); al.Add(listnerType); al.Add(select); return(al); }
public static bool DeleteData(string id) { var select = MyObj.DeleteData(id); return(select); }