public ActionResult SubmitBidResult(bool val, int bidId, int matchId) { int success = iplSchedule.updateBidStatusAndCalculatePoint(bidId, matchId, val, getUserID()); if (success == 1) { return(Json(new { data = new Result { Status = ResultStatus.Success, Message = "Result updated successfully." } }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { data = new Result { Status = ResultStatus.Error, Message = "Error occurred while updating result." } }, JsonRequestBehavior.AllowGet)); } }
public static void UpdateBidStatus() { IPLSchedule user = new IPLSchedule(); user.updateBidStatusAndCalculatePoint(1, 10, false, 1); }