public override async Task <HotelRoomTypeStruct> getHotelRoomTypeInfoById(HotelRoomTypeIdRequest request, ServerCallContext context) { try { var model = await _service.GetHotelRoomTypeInfoById(request.HotelRoomTypeId); var result = Mapper.Map <HotelRoomType, HotelRoomTypeStruct>(model); return(result); } catch (Exception ex) { LogHelper.Error(this, ex); throw ex; } }
public override async Task <ModifyReply> deleteHotelRoomTypeById(HotelRoomTypeIdRequest request, ServerCallContext context) { ModifyReply modifyReply = new ModifyReply(); try { var result = await _service.DeleteHotelRoomTypeById(request.HotelRoomTypeId); modifyReply = Mapper.Map <ModifyReplyModel, ModifyReply>(result); return(modifyReply); } catch (Exception ex) { LogHelper.Error(this, ex); throw ex; } }
public static HotelRoomTypeStruct getHotelRoomTypeInfoById(HotelRoomTypeIdRequest hotelRoomTypeId) { return(_client.getHotelRoomTypeInfoById(hotelRoomTypeId)); }
public static ModifyReply deleteHotelRoomTypeById(HotelRoomTypeIdRequest hotelRoomTypeId) { return(_client.deleteHotelRoomTypeById(hotelRoomTypeId)); }
public IActionResult getHotelRoomTypeInfoById(HotelRoomTypeIdRequest hotelRoomTypeId) { var result = EGClient.getHotelRoomTypeInfoById(hotelRoomTypeId); return(Ok(result)); }
public IActionResult deleteHotelRoomTypeById(HotelRoomTypeIdRequest hotelRoomTypeId) { var result = EGClient.deleteHotelRoomTypeById(hotelRoomTypeId); return(Ok(result)); }