public async Task <HotelAmenityDTO> CreateHotelAmenity(HotelAmenityDTO hotelAmenityDTO)
        {
            HotelAmenity hotelAmenity = _mapper.Map <HotelAmenityDTO, HotelAmenity>(hotelAmenityDTO);

            hotelAmenity.CreateDate = DateTime.Now;
            hotelAmenity.CreatedBy  = "";

            var createdAmenity = await _db.HotelAmenities.AddAsync(hotelAmenity);

            await _db.SaveChangesAsync();

            return(_mapper.Map <HotelAmenity, HotelAmenityDTO>(createdAmenity.Entity));
        }
Ejemplo n.º 2
0
 public void UpdateHotelAmenity(IKey hotelKey, HotelAmenity amenity)
 {
     //Get supplierfamily from hotelkey & update amenity
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public void UpdateAmenityGroup(IKey hotelKey, HotelAmenity amenity, long amenityGroupId)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public void InsertHotelAmenity(IKey hotelKey, HotelAmenity amenity)
 {
     //Get supplierfamily from hotelkey & insert amenity
     throw new NotImplementedException();
 }