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 })); }
public RoomTypeController() { _rtRepo = new RoomTypeRepo(); }