Exemple #1
0
        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));
        }
Exemple #2
0
        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"));
        }