public QueryResponse <ReservationQueryModel> GetAllReservationsByRoomsNumber(SearchObject search) { QueryResponse <ReservationQueryModel> responseReservations = reservationDAO.GetAllReservationsByRoomsNumber(search); List <ReservationQueryModel> temp = responseReservations.Data; if (temp == null) { return(responseReservations); } foreach (ReservationQueryModel item in temp) { item.ClientCPF = item.ClientCPF.Insert(3, ".").Insert(7, ".").Insert(12, "-"); item.ClientPhoneNumber = item.ClientPhoneNumber.Insert(0, "+").Insert(3, "(").Insert(6, ")").Insert(12, "-"); } return(responseReservations); }