Пример #1
0
        public IActionResult Exist([FromQuery] RoomType roomType)
        {
            var data = new RoomTypeRepo().Exists(roomType);

            if (data)
            {
                return(Ok(new
                {
                    message = new Message().locale["roomtype-exist"],
                    data
                }));
            }
            return(Ok(new
            {
                message = new Message().locale["roomtype-not-exist"],
                data
            }));
        }
Пример #2
0
 public RoomTypeController()
 {
     _rtRepo = new RoomTypeRepo();
 }