public async Task <bool> Apply(int id, int userId) { var isApplied = await IsApplied(id, userId); if (isApplied) { return(false); } await jobRepository.Apply(id, userId); return(true); }