コード例 #1
0
        public ActionResult AddMidPermitReview(MidPermitReviewVM model)
        {
            if(!ModelState.IsValid)
                return PartialView(model);

            try
            {
                myCoalUser user = myCoalUser.GetInstance();
                PermitDO newApplication = PermitBLL.CreateApplication(model.SelectedPermitKey, ENUMBLL.ApplicationTypes.MidPermitReview, model.ApplicationDescription, model.ApplicationNumber, user.RegistrationId, DirectoryMapping.AttachmentContentFolder);
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "A new Mid Permit Review application has been created");
                result.Data.Add("PermitKey", newApplication.PermitKey);
                return Json(result);
            }
            catch (Exception ex)
            {
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.ERROR, ex.Message);
                return Json(result);
            }
        }
コード例 #2
0
 public ActionResult AddMidPermitReview()
 {
     MidPermitReviewVM model = new MidPermitReviewVM();
     return PartialView(model);
 }