public ActionResult SubmitBidResultByBidder(bool val, int masterId) { BidResult success = iplSchedule.submitBidResultByBidder(val, masterId, getUser().userId); if (success.IsSucceed == 1) { return(Json(new { data = new Result { Status = ResultStatus.Success, Message = "Thank you for submitting your bid." }, favour = success.InFavour, against = success.Against, history = success.BidHistory }, JsonRequestBehavior.AllowGet)); } else if (success.IsSucceed == -2) { return(Json(new { data = new Result { Status = ResultStatus.Warning, Message = "Sorry bid is not available." } }, JsonRequestBehavior.AllowGet)); } else if (success.IsSucceed == -3) { return(Json(new { data = new Result { Status = ResultStatus.Error, Message = "Sorry insufficient balance to bid." } }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { data = new Result { Status = ResultStatus.Error, Message = "Error occurred while submitting pole." } }, JsonRequestBehavior.AllowGet)); } }
public ActionResult SubmitBidResultByBidder(bool val, int masterId) { BidResult success = iplSchedule.submitBidResultByBidder(val, masterId, getUserID()); if (success.IsSucceed == 1) { return(Json(new { data = new Result { Status = ResultStatus.Success, Message = "Your pole submitted successfully." }, favour = success.InFavour, against = success.Against, history = success.BidHistory }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { data = new Result { Status = ResultStatus.Error, Message = "Error occurred while submitting pole." } }, JsonRequestBehavior.AllowGet)); } }