public async Task <bool> AcceptOnlyThisApplication(int applicationId, EmployerDto managingEmployer) { using (var uow = UnitOfWorkProvider.Create()) { if ((await jobApplicationService.GetAsync(applicationId)).JobOffer.Employer.Id != managingEmployer.Id) { throw new ArgumentException(); } var result = await jobApplicationService.AcceptOnlyThisApplication(applicationId); await uow.Commit(); return(result); } }