public override async Task <ModifyReply> updateHotelRoomTypeInfo(HotelRoomTypeStruct request, ServerCallContext context)
        {
            ModifyReply modifyReply = new ModifyReply();

            try
            {
                request.UpdatedAt = DateTime.UtcNow.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ");

                var model  = Mapper.Map <HotelRoomTypeStruct, HotelRoomType>(request);
                var result = await _service.UpdateHotelRoomTypeInfo(model);

                modifyReply = Mapper.Map <ModifyReplyModel, ModifyReply>(result);
                return(modifyReply);
            }
            catch (Exception ex)
            {
                LogHelper.Error(this, ex);
                throw ex;
            }
        }
Beispiel #2
0
 public static ModifyReply updateHotelRoomTypeInfo(HotelRoomTypeStruct model)
 {
     return(_client.updateHotelRoomTypeInfo(model));
 }
Beispiel #3
0
        public IActionResult updateHotelRoomTypeInfo(HotelRoomTypeStruct model)
        {
            var result = EGClient.updateHotelRoomTypeInfo(model);

            return(Ok(result));
        }