public ActionResult ApproveChequeInfo(int transporterChequeID) { var user = UserAccountHelper.GetUser(User.Identity.Name); var transporterChequeObj = _transporterChequeService.FindById(transporterChequeID); transporterChequeObj.AppovedBy = user.UserProfileID; transporterChequeObj.AppovedDate = DateTime.Now; transporterChequeObj.Status = 2; _transporterChequeService.EditTransporterCheque(transporterChequeObj); //var transporterChequeViewModel = BindTransporterChequeViewModel(transporterChequeObj); return(Json(transporterChequeID, JsonRequestBehavior.AllowGet)); }
public ActionResult UpdateChequeStatus(int transporterChequeId, int status) { var cheque = _transporterChequeService.FindById(transporterChequeId); if (cheque == null) { return(Json(null)); } cheque.Status = status; _transporterChequeService.EditTransporterCheque(cheque); return(RedirectToAction("Index")); }