Ejemplo n.º 1
0
 public JsonResult DealOriginationReport(FormCollection collection)
 {
     DealOriginationModel model = new DealOriginationModel();
     this.TryUpdateModel(model, collection);
     string error = string.Empty;
     ResultModel resultModel = new ResultModel();
     DealOriginationReportModel dealOriginationReportDetail = null;
     if (ModelState.IsValid) {
         dealOriginationReportDetail = ReportRepository.FindDealOriginationReport(model.DealId);
     }
     else {
         foreach (var values in ModelState.Values.ToList()) {
             foreach (var err in values.Errors.ToList()) {
                 if (string.IsNullOrEmpty(err.ErrorMessage) == false) {
                     error += err.ErrorMessage + "\n";
                 }
             }
         }
     }
     return Json(new { Error = error, Data = dealOriginationReportDetail }, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 2
0
 public ActionResult DealOrigination()
 {
     ViewData["MenuName"] = "ReportManagement";
     ViewData["SubmenuName"] = "DealOrigination";
     DealOriginationModel model = new DealOriginationModel();
     return View(model);
 }