mobile development how to insert record then check if value exist show message

hi

I try to development mobile application booking room, but i confuse how to check value exist in database for example Room A has been booking in hour 09:00 - 10:00 and then any person create new booking for same Room and same hour. My question how to check if Room has been booking and cannot booking again in same hour and show message

Hi Ahmad,


Create an aggregate and filter that aggregate with RoomId  and time slot,selected by the user . If aggregate returns a record then show the message "Room is not available for the selected time slot "

Hope it will helps.

Regards,

Koushik

hi Koushik

any tutorial related this case?..

Hi Ahmad,


create an aggregate and filter with roomid and time and booking date

Now check is the aggregate returning any record, if it returned any record then show the message.

If not then create a record for corresponding room booking request. 

Hope it will helps you.

Regards,

Koushik