public IActionResult Edit(int id) { return(View(companyDomainService.Get(id))); }
//================================================================================ private void validateCompanyExistance(Company secondParty, ICompanyDomainService companyDomainService) { Company fetchedCompany = companyDomainService.Get(secondParty.Id); if (fetchedCompany == null) { throw new ObjectNotFound("Company Not Found"); } }
//================================================================================ 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"); } }