Example #1
0
        public static void AddReview(int id, ReviewModel review)
        {
            var job = Jobs.First(j => j.Id == id);

            if (job != null)
            {
                job.Employer.ReceivedReviews.Insert(0, review);
                UsersService.AddReview(job.Employer.Id, review);
            }
        }
Example #2
0
        public static void AddReview(int jobId, int userId, ReviewModel review)
        {
            var job = Jobs.First(j => j.Id == jobId);

            if (job != null)
            {
                job.Employees.First(employee => employee.Employee.Id == userId).Employee.ReceivedReviews.Insert(0, review);
                UsersService.AddReview(userId, review);
            }
        }