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)); }
public void UpdateHotelAmenity(IKey hotelKey, HotelAmenity amenity) { //Get supplierfamily from hotelkey & update amenity throw new NotImplementedException(); }
public void UpdateAmenityGroup(IKey hotelKey, HotelAmenity amenity, long amenityGroupId) { throw new NotImplementedException(); }
public void InsertHotelAmenity(IKey hotelKey, HotelAmenity amenity) { //Get supplierfamily from hotelkey & insert amenity throw new NotImplementedException(); }