public async Task <IActionResult> PutHotelVendor(int id, [FromForm] HotelVendor hotelVendor)
        {
            if (id != hotelVendor.CompanyID)
            {
                return(BadRequest());
            }

            if (hotelVendor.ImageFile != null)
            {
                DeleteImage(hotelVendor.ImageName);
                hotelVendor.ImageName = await SaveImage(hotelVendor.ImageFile);
            }

            _context.Entry(hotelVendor).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!HotelVendorExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <HotelVendor> > PostSaloonVendor([FromForm] HotelVendor hotelVendor)
        {
            hotelVendor.ImageName = await SaveImage(hotelVendor.ImageFile);

            _context.Hotels.Add(hotelVendor);
            await _context.SaveChangesAsync();

            return(StatusCode(201));
        }