method is not getting called at client side using signalR

Jul 7 2015 7:04 AM
I am building an auction site in 3-tier architecture.I have a method which is defined in AuctionHub.cs as follows:
 
public BAL.LiveAuctionBAL AuctionBid(string Lot_Id, string InputAmt, string vendorid, string V_AuctionID, string AddModBy, string OpenBidAmt, string Decrementbid, string LastBidAmount, string auctionEndTimer)
{
BAL.LiveAuctionBAL BAL = new BAL.LiveAuctionBAL();
string result = "";
string msg = "", message = "";
try
{
BAL.Auction_Id = Convert.ToInt32(V_AuctionID);
BAL.Lot_Id = Convert.ToInt32(Lot_Id);
BAL.Vendor_Id = Convert.ToInt32(vendorid);
BAL.Bid_Amount = Convert.ToDouble(InputAmt);
if (auctionEndTimer != "")
{
BAL.AuctionEndTimer = DateTime.Parse(auctionEndTimer.ToString());
}
else
{
BAL.AuctionEndTimer = Convert.ToDateTime("01/01/1900");
}
BAL.AddMod_By = AddModBy;
result = BAL.AddAuctionBid();
if (result != "")
{
msg = result;
}
}
catch
{
}
return BAL;
}
 
now I am calling this method at client side as follows:
jq(function () {
jq.connection.hub.start().done(function () {
chat.server.auctionbid(Lot_Id, InputAmt, vendorid, V_AuctionID, AddModBy, OpenBidAmt, Decrementbid, LastBidAmount, auctionEndTimer);
}
 
but its not working...please help me with this.Its very urgent for me..Thanks in advance
 
 

Answers (2)