public ActionResult GetPartialInsured(string policyNumber)
 {
     ViewBag.TitleList       = InsuredEntity.GetTitleList();
     ViewBag.InsuredTypeList = InsuredEntity.GetInsuredTypeList();
     ViewBag.SuffixList      = InsuredEntity.GetSuffixList();
     ViewBag.LEList          = InsuredEntity.GetLEList();
     return(PartialView());
 }
 public ActionResult SavePolicyInsured(InsuredEntity model)
 {
     if (ModelState.IsValid)
     {
         return(Content("<script language='javascript' type='text/javascript'>alert('Save Successfully');</script>"));
     }
     return(View());
 }
        public static void SeedData(IFormDataService formDataService)
        {
            Claim claim = new Claim
            {
                ClaimNumber    = "12346-CSF",
                ClientID       = "CL-333",
                DateOfEvent    = DateTime.Now,
                ScopeOfWork    = null,
                TypeOfLocation = ClaimLocationType.COMMERCIAL,
                TypeOfClaim    = ClaimType.ELECTRICAL
            };

            ContactInfo primaryContact = new ContactInfo
            {
                FirstName = "John",
                LastName  = "Doe",
                Email     = "*****@*****.**",
                Phone     = "418-555-5555"
            };

            ContactInfo insuredPerson = new ContactInfo
            {
                FirstName = "Jane",
                LastName  = "Doe",
                Email     = "*****@*****.**",
                Phone     = "123-456-6666"
            };

            Client client = new Client
            {
                ClientID       = "CL-333",
                CompanyName    = "SSQ",
                OtherContact   = null,
                PrimaryContact = primaryContact
            };

            Document document = new Document
            {
                DocumentContent = null,
                DocumentName    = "testDoc456",
                DocumentPath    = "C//Users//Documents//"
            };

            InsuredEntity insuredEntity = new InsuredEntity
            {
                InsuredContactInfo = insuredPerson
            };

            InvestigationProject project = new InvestigationProject
            {
                ProjectClaim         = claim,
                ProjectClient        = client,
                ProjectID            = "TestID-1123456",
                ProjectInsuredEntity = insuredEntity,
                ProjectLocationType  = claim.TypeOfLocation,
                ProjectType          = claim.TypeOfClaim,
                ProjectStatus        = ProjectStatus.PENDING
            };

            project.ProjectDocuments.Add(document);

            formDataService.AddProject(project);
        }