コード例 #1
0
        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));
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: shreedhar-ww/IPLFinalCode
        public static void UpdateBidStatus()
        {
            IPLSchedule user = new IPLSchedule();

            user.updateBidStatusAndCalculatePoint(1, 10, false, 1);
        }