public ActionResult NewPermit(NewPermitVM model)
        {
            if (!ModelState.IsValid)
                return PartialView(model);

            try
            {
                PermitDO newPermit = new PermitDO() { SiteName = model.SiteName, ApplicationTypeID = "Permit", PermitID = model.PermitId };
                int permitKey = PermitBLL.Save(newPermit, (int)myCoalUser.GetInstance().RegistrationId);
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "The permit was created");
                result.Data.Add("PermitKey", permitKey);
                return Json(result);
            }
            catch (Exception ex)
            {
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.ERROR, ex.Message);
                return Json(result);
            }
        }
 public ActionResult NewPermit()
 {
     NewPermitVM model = new NewPermitVM();
     return PartialView(model);
 }