Beispiel #1
0
 public IActionResult Edit(int id)
 {
     return(View(companyDomainService.Get(id)));
 }
Beispiel #2
0
        //================================================================================
        private void validateCompanyExistance(Company secondParty, ICompanyDomainService companyDomainService)
        {
            Company fetchedCompany = companyDomainService.Get(secondParty.Id);

            if (fetchedCompany == null)
            {
                throw new ObjectNotFound("Company Not Found");
            }
        }
Beispiel #3
0
        //================================================================================
        private void validateCompanyExistance(Company introducer, ICompanyDomainService companyDomainService)
        {
            if (introducer == null)
                throw new BusinessRuleException("", "The Offhire Registrar Company must be selected.");

            if (companyDomainService.Get(introducer.Id) == null)
            {
                throw new ObjectNotFound("Company Not Found");
            }
        }