Exemple #1
0
 public static void ToVacancy(this VacancyDto vacancyDto, Vacancy vacancy)
 {
     vacancy.Id = vacancyDto.Id;
     vacancy.Name = vacancyDto.Name;
     vacancy.Status = vacancyDto.Status;
     vacancy.StartDate = vacancyDto.StartDate;
     vacancy.EndDate = vacancyDto.EndDate;
     vacancy.Description = vacancyDto.Description;
     //            vacancy.Pool = (ICollection<Pool>) vacancyDto.Pools.Select(x => x.ToPoolModel());
 }
Exemple #2
0
 public static Vacancy ToVacancy(this VacancyDto vacancy)
 {
     var v = new Vacancy
     {
         Id = vacancy.Id,
         Name = vacancy.Name,
         Status = vacancy.Status,
         StartDate = vacancy.StartDate,
         EndDate = vacancy.EndDate,
         Description = vacancy.Description,
     //                Pool = (ICollection<Pool>) vacancy.Pools.Select(x => x.ToPoolModel())
     };
     return v;
 }
 public void CreateAddedVacancyActivity(Vacancy vacancy)
 {
     try
     {
         string message = string.Format("A new vacancy has been created : {0}", vacancy.Name);
         ActivityType type = ActivityType.Vacancy;
         Uri url = new Uri("#/vacancy/" + vacancy.Id, UriKind.Relative);
         _activityPostService.Post(message, type, url);
     }
     catch (Exception e)
     {
         _logger.Log("Creating activity exception : " + e.Message);
     }
 }