Пример #1
0
        public int SaveJobSeeker(JobSeeker jobSeeker, Credential credential)
        {
            credential.CredentialId = _credentialDal.GetNextJobSeekerId();
            var numberOfJobSeekerAdded  = _jobSeekerDal.AddJobSeeker(jobSeeker);
            var numberOfCredentialAdded = _credentialDal.AddCredentials(credential);

            return(numberOfCredentialAdded == 1 &&
                   numberOfJobSeekerAdded == 1
                ? 1 : 0);
        }
Пример #2
0
        public int SaveCompany(Company company, Credential credential)
        {
            credential.CredentialId = _credentialDal.GetNextCompanyId();
            var numberOfJobSeekerAdded  = companyDal.AddCompany(company);
            var numberOfCredentialAdded = _credentialDal.AddCredentials(credential);

            return(numberOfCredentialAdded == 1 &&
                   numberOfJobSeekerAdded == 1
                ? 1 : 0);
        }