public ActionResult Verify(VerificationVm m) { if (ModelState.IsValid) { var save = new AccountVerifications().Create(m); if (save) { ViewBag.success = "Document submitted successfully, you will be notified via email when your has been approved"; //return Json(new { status = 200, message = "Document Uploaded and Submited Successfull" }, JsonRequestBehavior.AllowGet); } } return(View(m)); // IEnumerable<ModelError> errors = ModelState.Values.SelectMany(v => v.Errors).ToList(); // return Json(new { status = 400, errors = errors, message = "Check your entries" }, JsonRequestBehavior.AllowGet); }
public ActionResult DeleteVerification(int id) { var approve = new AccountVerifications().Delete(id); return(RedirectToAction(nameof(Verifications))); }
public ActionResult DeclineVerification(int id) { var approve = new AccountVerifications().SetStatus(id, VerificationStatus.DENYED); return(RedirectToAction(nameof(Verifications))); }
public ActionResult Verifications() { var list = new AccountVerifications().GetVerifications(); return(View(list)); }
public ActionResult Verifications() { var list = new AccountVerifications().GetAccountVerifications(AccountId()); return(PartialView(list)); }