/// <summary> /// <inheritdoc/> /// </summary> public IResult Update(Hotel entity) { try { _hotelDal.Update(entity); return(new SuccessResult(Messages.HotelUpdated)); } catch { return(new ErrorResult(Messages.HotelUpdateError)); } }
public void Update(Hotel hotel) { _hotelDal.Update(hotel); }
public IResult Update(Hotel entity) { _hotelDal.Update(entity); return(new SuccessResult(Messages <Hotel> .Updated)); }
public void Update(Hotel entity) { _hotelDal.Update(entity); }
public async Task <Hotel> UpdateHotel(Hotel hotel) { return(await hotelDal.Update(hotel)); }