Пример #1
0
 public static DAL.SuggestionTraveler ToDAL(SuggestionTravelerDto suggestionTravelerDto)
 {
     DAL.SuggestionTraveler suggestionTraveler = new DAL.SuggestionTraveler()
     {
         SuggestionId = suggestionTravelerDto.SuggestionId,
         TravelerId   = suggestionTravelerDto.TravelerId,
         Status       = suggestionTravelerDto.Status
     };
     return(suggestionTraveler);
 }
Пример #2
0
        public IHttpActionResult AddOrUpdateSuggestionStatus(SuggestionTravelerDto suggestionTravelerDto)
        {
            SuggestionTravelerDto st = BL.ManageSuggestion.SaveSuggestionTraveler(suggestionTravelerDto);

            if (st != null)
            {
                return(Created <SuggestionTravelerDto>("The content inserted into the database successfully", st));
            }
            return(InternalServerError());
        }
Пример #3
0
        public static SuggestionTravelerDto ToDTO(DAL.SuggestionTraveler model)
        {
            SuggestionTravelerDto suggestionTravelerDto = new SuggestionTravelerDto()
            {
                SuggestionId = model.SuggestionId,
                TravelerId   = model.TravelerId,
                Status       = model.Status
            };

            return(suggestionTravelerDto);
        }
Пример #4
0
 /// <summary>
 /// שמירת הצעה למטייל
 /// </summary>
 /// <param name="suggestionTravelerDto"></param>
 /// <returns></returns>
 public static SuggestionTravelerDto SaveSuggestionTraveler(SuggestionTravelerDto suggestionTravelerDto)
 {
     return(SuggestionTraveler.ToDTO(DAL.ManageSuggestion.SaveSuggestionTraveler(SuggestionTraveler.ToDAL(suggestionTravelerDto))));
 }